(ctx context.Context, rc requestContext)
| 59 | } |
| 60 | |
| 61 | func handleNotificationProfileDelete(ctx context.Context, rc requestContext) (any, *apiError) { |
| 62 | if err := repo.WriteSession(ctx, rc.rep, repo.WriteSessionOptions{ |
| 63 | Purpose: "NotificationProfileDelete", |
| 64 | }, func(ctx context.Context, w repo.RepositoryWriter) error { |
| 65 | return notifyprofile.DeleteProfile(ctx, w, rc.muxVar("profileName")) |
| 66 | }); err != nil { |
| 67 | return nil, internalServerError(err) |
| 68 | } |
| 69 | |
| 70 | return &serverapi.Empty{}, nil |
| 71 | } |
| 72 | |
| 73 | func handleNotificationProfileList(ctx context.Context, rc requestContext) (any, *apiError) { |
| 74 | profiles, err := notifyprofile.ListProfiles(ctx, rc.rep) |
nothing calls this directly
no test coverage detected