diff options
| -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 be59e09..9991c49 100644 --- a/src/site.clj +++ b/src/site.clj @@ -730,7 +730,7 @@ ORDER BY msg_count DESC") (log session (lookup-room room-key) offset params) (resp-error "UNKNOWN_ROOM")))) -;; Tags +;; Tags (defn undecoded-url-piece [url position] "Get nth thing out of a url path. @@ -1045,7 +1045,9 @@ ORDER BY msg_count DESC") (GET "/terms" (serve-template "terms" session)) (GET "/error/ie" (serve-template "error_ie" session)) - (GET "/:nick" (profile session (params :nick) "0")) + ;; Put username routes below all others in priority + (GET "/:nick" (profile session (params :nick) "0")) + (GET "/:nick/" (profile session (params :nick) "0")) (GET "/:nick/:offset" (profile session (params :nick) (params :offset))) (GET "/" (landing session)) (ANY "*" (unknown-page))) |
