You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
WIP: Handle /login
This commit is contained in:
@@ -39,6 +39,7 @@ use sqlx::PgPool;
|
||||
use tower::util::ThenLayer;
|
||||
use tower_http::cors::{Any, CorsLayer};
|
||||
|
||||
mod compat;
|
||||
mod health;
|
||||
mod oauth2;
|
||||
mod views;
|
||||
@@ -95,6 +96,10 @@ where
|
||||
mas_router::OAuth2RegistrationEndpoint::route(),
|
||||
post(self::oauth2::registration::post),
|
||||
)
|
||||
.route(
|
||||
mas_router::CompatLogin::route(),
|
||||
get(self::compat::get).post(self::compat::post),
|
||||
)
|
||||
.layer(
|
||||
CorsLayer::new()
|
||||
.allow_origin(Any)
|
||||
|
||||
Reference in New Issue
Block a user