From 8a27b2bac814a4f7765d34dcfbb8510b3e17ccc3 Mon Sep 17 00:00:00 2001 From: Spike <19519553+spikecodes@users.noreply.github.com> Date: Tue, 2 Feb 2021 08:59:50 -0800 Subject: [PATCH] Support /w/ for Wikis --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 30b479a..7aa0333 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,7 +134,7 @@ async fn main() -> std::io::Result<()> { .route("/search/", web::get().to(search::find)) // View wiki of subreddit .service( - web::scope("/wiki") + web::scope("/{scope:wiki|w}") .route("/", web::get().to(subreddit::wiki)) .route("/{page}/", web::get().to(subreddit::wiki)), ),