1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-26 08:04:20 +01:00

Return "Hello from Conduit!" on the / route

akin to Synapes's "It works!" page, removing an unnecessary warning
about / route being unknown

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-07-28 23:47:00 +00:00
parent cc5dcceacc
commit 3494d7759e

View file

@ -433,6 +433,7 @@ fn routes() -> Router {
"/_matrix/client/v3/rooms/:room_id/initialSync",
get(initial_sync),
)
.route("/", get(it_works))
.fallback(not_found)
}
@ -482,6 +483,10 @@ async fn initial_sync(_uri: Uri) -> impl IntoResponse {
)
}
async fn it_works() -> &'static str {
"Hello from Conduit!"
}
trait RouterExt {
fn ruma_route<H, T>(self, handler: H) -> Self
where