diff options
author | girlbossceo <june@girlboss.ceo> | 2023-07-28 23:47:00 +0000 |
---|---|---|
committer | girlbossceo <june@girlboss.ceo> | 2023-07-29 14:29:26 +0000 |
commit | 3494d7759e0c371ce436ed34dcc87bd03a10ca70 (patch) | |
tree | de19a3374fe9bab1bdb4a622e0e88715982df58f | |
parent | cc5dcceacc38483209502d120b56407db9ad3055 (diff) | |
download | conduit-3494d7759e0c371ce436ed34dcc87bd03a10ca70.zip |
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>
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index eb7e833..9b7528c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 |