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

Add a way to discover the GraphQL endpoint in the .well-known/openid-configuration

This adds a `org.matrix.matrix-authentication-service.graphql_endpoint` key to it
This commit is contained in:
Quentin Gliech
2023-09-18 19:19:39 +02:00
parent a62aa87b0c
commit 3303e74123
4 changed files with 40 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ where
{
let mut router = Router::new()
.route(
"/graphql",
mas_router::GraphQL::route(),
get(self::graphql::get).post(self::graphql::post),
)
.layer(
@@ -141,7 +141,10 @@ where
);
if playground {
router = router.route("/graphql/playground", get(self::graphql::playground));
router = router.route(
mas_router::GraphQLPlayground::route(),
get(self::graphql::playground),
);
}
router