Explorar el Código

Redirect /video alias

Zed hace 7 años
padre
commit
1871cebf1f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/routes/status.nim

+ 3 - 0
src/routes/status.nim

@@ -46,6 +46,9 @@ proc createStatusRouter*(cfg: Config) =
     get "/@name/status/@id/photo/@i":
       redirect("/$1/status/$2" % [@"name", @"id"])
 
+    get "/@name/status/@id/video/@i":
+      redirect("/$1/status/$2" % [@"name", @"id"])
+
     get "/@name/statuses/@id":
       redirect("/$1/status/$2" % [@"name", @"id"])