Add /statuses/ endpoint alias

Fixes #53
This commit is contained in:
Zed 2019-09-30 22:07:41 +02:00
parent 09f6b9a7db
commit 53a7113905

View file

@ -43,7 +43,10 @@ proc createStatusRouter*(cfg: Config) =
resp renderMain(html, request, cfg.title, title, desc,
images=conversation.tweet.photos, `type`="photo")
get "/@name/status/@id/photo/1":
get "/@name/status/@id/photo/@i":
redirect("/$1/status/$2" % [@"name", @"id"])
get "/@name/statuses/@id":
redirect("/$1/status/$2" % [@"name", @"id"])
get "/i/web/status/@id":