(f apiRequestFunc)
| 338 | } |
| 339 | |
| 340 | func (s *Server) handleServerControlAPIPossiblyNotConnected(f apiRequestFunc) http.HandlerFunc { |
| 341 | return s.handleRequestPossiblyNotConnected(requireServerControlUser, csrfTokenNotRequired, func(ctx context.Context, rc requestContext) (any, *apiError) { |
| 342 | return f(ctx, rc) |
| 343 | }) |
| 344 | } |
| 345 | |
| 346 | func (s *Server) handleUI(f apiRequestFunc) http.HandlerFunc { |
| 347 | return s.handleRequestPossiblyNotConnected(requireUIUser, csrfTokenRequired, func(ctx context.Context, rc requestContext) (any, *apiError) { |
no test coverage detected