gatus/api
TwiN 6a8c308af7 fix(api): Define unprotected routes first
This is because fiber does not work the same way that mux did wrt groups (mux referred to them as subrouters).
I could not apply a middleware to a specific fiber Group due to the groups being prefix-based.
In other words, the only other way to apply middlewares to specific endpoints without changing the path is by applying the security middleware after the routes that did not need to be protected and before the routes that did need to be protected
2023-07-11 22:46:49 -04:00
..
api_test.go test(security): Make sure router behaves as intended when authn is required 2023-07-11 22:46:49 -04:00
api.go fix(api): Define unprotected routes first 2023-07-11 22:46:49 -04:00
badge_test.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
badge.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
cache.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
chart_test.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
chart.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
config_test.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
config.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
endpoint_status_test.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
endpoint_status.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
spa_test.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
spa.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
util_test.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00
util.go feat(api): Migrate from gorilla/mux to fiber 2023-07-11 22:46:49 -04:00