mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 15:17:47 +00:00
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))
|
.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…
Add table
Add a link
Reference in a new issue