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

@@ -692,3 +692,17 @@ impl Route for StaticAsset {
format!("/assets/{}", self.path).into()
}
}
/// `GET|POST /graphql`
pub struct GraphQL;
impl SimpleRoute for GraphQL {
const PATH: &'static str = "/graphql";
}
/// `GET /graphql/playground`
pub struct GraphQLPlayground;
impl SimpleRoute for GraphQLPlayground {
const PATH: &'static str = "/graphql/playground";
}