1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Remove the dependency mas-axum-utils <- mas-graphql

This is done by loading the browser session earlier
Also removes the GraphQL subscription logic
This commit is contained in:
Quentin Gliech
2022-12-15 16:33:15 +01:00
parent 808a8218fd
commit 82421c493c
9 changed files with 60 additions and 189 deletions

View File

@@ -94,14 +94,13 @@ where
<B as HttpBody>::Error: std::error::Error + Send + Sync,
S: Clone + Send + Sync + 'static,
mas_graphql::Schema: FromRef<S>,
PgPool: FromRef<S>,
Encrypter: FromRef<S>,
{
let mut router = Router::new()
.route(
"/graphql",
get(self::graphql::get).post(self::graphql::post),
)
.route("/graphql/ws", get(self::graphql::ws));
let mut router = Router::new().route(
"/graphql",
get(self::graphql::get).post(self::graphql::post),
);
if playground {
router = router.route("/graphql/playground", get(self::graphql::playground));