diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2011-01-13 01:32:10 -0500 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2011-01-13 01:32:10 -0500 |
| commit | 6a0015db5563dc5fe7a54672581b8d59f0fd23e7 (patch) | |
| tree | 2a41cc0b4df765b22bff4d8948a96e6ea3ac0483 | |
| parent | 7d68c6986c0ba08dcb4c2f3dcca318584021099c (diff) | |
Add fallthrough routes for static/post routeset
| -rw-r--r-- | src/site.clj | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/site.clj b/src/site.clj index 5b20361..c63a6cb 100644 --- a/src/site.clj +++ b/src/site.clj @@ -1186,7 +1186,8 @@ WHERE user_id IN (GET "/irlhell" (redirect-to "/irhell/")) (GET "/irhell" (redirect-to "/irhell/")) (GET "/irhell/" (serve-static "static/319" "irhell.html")) - (GET "/irhell/*" (serve-static "static/319" (params :*)))) + (GET "/irhell/*" (serve-static "static/319" (params :*))) + (ANY "*" (unknown-page))) @@ -1331,7 +1332,8 @@ WHERE user_id IN (defroutes multipart (POST "/upload/message" (upload session params request)) (POST "/upload/photo" (upload-photo session params)) - (POST "/upload/avatar" (upload-avatar session params))) + (POST "/upload/avatar" (upload-avatar session params)) + (ANY "*" (unknown-page))) ;; Add jpeg to list (def mimetypes |
