Support /w/ for Wikis
This commit is contained in:
parent
69941d9efd
commit
8a27b2bac8
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue