grafana/pkg/middleware
Torkel Ödegaard 57701fd2f2
ServeFromSubPath: Redirect to URL with subpath when subpath missing (#66724)
* ServeFromSubPath: Redirect to URL with subpath when subpath missing

* Review fixes

* Added tests

* Use constant

* change to useMiddleware

* Update pkg/middleware/subpath_redirect.go

---------

Co-authored-by: Carl Bergquist <carl.bergquist@gmail.com>
2023-04-24 09:55:55 +02:00
..
cookies Auth: Add feature flag to move token rotation to client (#65060) 2023-03-23 14:39:04 +01:00
csrf CSRF: Fix additional headers option (#50629) 2022-07-13 19:28:59 +01:00
loggermw Logger: Add feature toggle for errors in HTTP request logs (#64425) 2023-03-31 15:38:09 +02:00
auth_test.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
auth.go Plugins: Migrate licensing and access control to pkg/services/pluginsintegration package (#65258) 2023-03-27 11:15:37 +02:00
csp.go Middleware: Add CSP Report Only support (#58074) 2022-11-16 17:11:26 +00:00
dashboard_redirect_test.go Chore: Remove endpoints that contain the slug field (#35104) 2021-06-03 16:20:13 +03:00
dashboard_redirect.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
gziper.go Chore: replace macaron with web package (#40136) 2021-10-11 14:30:59 +02:00
middleware_basic_auth_test.go LDAP: Move LDAP globals to Config (#63255) 2023-02-10 19:01:55 +01:00
middleware_jwt_auth_test.go ContextHandler: add all configured auth header to context (#62775) 2023-02-02 16:25:46 +01:00
middleware_test.go Auth: Fix orgrole picker disabled if isSynced user (#64033) 2023-03-22 17:41:59 +00:00
middleware.go Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
org_redirect_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
org_redirect.go UserService: use the UserService instead of calling sqlstore directly (#55745) 2022-09-27 07:58:49 -04:00
quota_test.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +01:00
quota.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
recovery_test.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
recovery.go Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
request_metrics.go Logger: Add feature toggle for errors in HTTP request logs (#64425) 2023-03-31 15:38:09 +02:00
request_test.go Logger: Add feature toggle for errors in HTTP request logs (#64425) 2023-03-31 15:38:09 +02:00
request_tracing.go Logger: Add feature toggle for errors in HTTP request logs (#64425) 2023-03-31 15:38:09 +02:00
subpath_redirect_test.go ServeFromSubPath: Redirect to URL with subpath when subpath missing (#66724) 2023-04-24 09:55:55 +02:00
subpath_redirect.go ServeFromSubPath: Redirect to URL with subpath when subpath missing (#66724) 2023-04-24 09:55:55 +02:00
testing.go ServeFromSubPath: Redirect to URL with subpath when subpath missing (#66724) 2023-04-24 09:55:55 +02:00
validate_host.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00