diff --git a/srv/content/router.hy b/srv/content/router.hy index 5cd180c..d5b1549 100644 --- a/srv/content/router.hy +++ b/srv/content/router.hy @@ -68,6 +68,11 @@ :code 200 :body (parse-html-file "./www/site/html/test.html" :route "/test.html")))) + (when (= path "/files/natalieee.net.png") + (return (dict + :code 308 + :headers {"Location" "/assets/88x31/natalieee.net.png"} + :body ""))) (when (= path "/comment") (cond