1
0
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:
Quentin Gliech
2022-05-12 16:54:55 +02:00
parent 0527af073d
commit 1ebdd0b731
3 changed files with 95 additions and 0 deletions

View File

@@ -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)