Support /w/ for Wikis

This commit is contained in:
Spike 2021-02-02 08:59:50 -08:00 committed by GitHub
parent 69941d9efd
commit 8a27b2bac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)),
),