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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user