Support /w/ for Wikis
This commit is contained in:
parent
69941d9efd
commit
8a27b2bac8
@ -134,7 +134,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
.route("/search/", web::get().to(search::find))
|
.route("/search/", web::get().to(search::find))
|
||||||
// View wiki of subreddit
|
// View wiki of subreddit
|
||||||
.service(
|
.service(
|
||||||
web::scope("/wiki")
|
web::scope("/{scope:wiki|w}")
|
||||||
.route("/", web::get().to(subreddit::wiki))
|
.route("/", web::get().to(subreddit::wiki))
|
||||||
.route("/{page}/", web::get().to(subreddit::wiki)),
|
.route("/{page}/", web::get().to(subreddit::wiki)),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user