(app serving-dir)
Handler for the server, accepts just one argument serving-dir
, which is the directory path to be served
Handler for the server, accepts just one argument `serving-dir`, which is the directory path to be served
(ignore-trailing-slash handler)
Modifies the request uri before calling the handler. Removes a single trailing slash from the end of the uri if present.
Useful for handling optional trailing slashes until Compojure's route matching syntax supports regex. Adapted from http://stackoverflow.com/questions/8380468/compojure-regex-for-matching-a-trailing-slash
Modifies the request uri before calling the handler. Removes a single trailing slash from the end of the uri if present. Useful for handling optional trailing slashes until Compojure's route matching syntax supports regex. Adapted from http://stackoverflow.com/questions/8380468/compojure-regex-for-matching-a-trailing-slash
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close