You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Move the healthcheck route to the API router
This commit is contained in:
@ -66,6 +66,7 @@ where
|
|||||||
{
|
{
|
||||||
// All those routes are API-like, with a common CORS layer
|
// All those routes are API-like, with a common CORS layer
|
||||||
Router::with_state_arc(state)
|
Router::with_state_arc(state)
|
||||||
|
.route(mas_router::Healthcheck::route(), get(self::health::get))
|
||||||
.route(
|
.route(
|
||||||
mas_router::ChangePasswordDiscovery::route(),
|
mas_router::ChangePasswordDiscovery::route(),
|
||||||
get(|| async { mas_router::AccountPassword.go() }),
|
get(|| async { mas_router::AccountPassword.go() }),
|
||||||
@ -174,7 +175,6 @@ where
|
|||||||
let templates = Templates::from_ref(&state);
|
let templates = Templates::from_ref(&state);
|
||||||
Router::with_state_arc(state)
|
Router::with_state_arc(state)
|
||||||
.route(mas_router::Index::route(), get(self::views::index::get))
|
.route(mas_router::Index::route(), get(self::views::index::get))
|
||||||
.route(mas_router::Healthcheck::route(), get(self::health::get))
|
|
||||||
.route(
|
.route(
|
||||||
mas_router::Login::route(),
|
mas_router::Login::route(),
|
||||||
get(self::views::login::get).post(self::views::login::post),
|
get(self::views::login::get).post(self::views::login::post),
|
||||||
|
Reference in New Issue
Block a user