Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 7 lines (7 sloc) 2.468 kb
1 2 3 4 5 6 7
<!DOCTYPE html>
<html><head><link href="css/default.css" rel="stylesheet" type="text/css"><script src="js/jquery.min.js" type="text/javascript"></script><script src="js/page_effects.js" type="text/javascript"></script><title>compojure.route documentation</title></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html">Compojure 1.1.3 API documentation</a></h1></div><div class="sidebar" id="namespaces"><h3><span>Namespaces</span></h3><ul><li><a href="compojure.core.html"><span>compojure.core</span></a></li><li><a href="compojure.handler.html"><span>compojure.handler</span></a></li><li><a href="compojure.response.html"><span>compojure.response</span></a></li><li class="current"><a href="compojure.route.html"><span>compojure.route</span></a></li></ul></div><div class="sidebar" id="vars"><h3>Public Vars</h3><ul><li><a href="compojure.route.html#var-files"><span>files</span></a></li><li><a href="compojure.route.html#var-not-found"><span>not-found</span></a></li><li><a href="compojure.route.html#var-resources"><span>resources</span></a></li></ul></div><div class="namespace-docs" id="content"><h2>compojure.route documentation</h2><pre class="doc"></pre><div class="public" id="var-files"><h3>files</h3><div class="usage"><code>(files path &amp; [options])</code></div><pre class="doc">A route for serving static files from a directory. Accepts the following
keys:
  :root - the root path where the files are stored. Defaults to 'public'.</pre><div class="src-link"><a href="http://github.com/weavejester/compojure/blob/1.1.3/src/compojure/route.clj#L15">Source</a></div></div><div class="public" id="var-not-found"><h3>not-found</h3><div class="usage"><code>(not-found body)</code></div><pre class="doc">A route that returns a 404 not found response, with its argument as the
response body.</pre><div class="src-link"><a href="http://github.com/weavejester/compojure/blob/1.1.3/src/compojure/route.clj#L38">Source</a></div></div><div class="public" id="var-resources"><h3>resources</h3><div class="usage"><code>(resources path &amp; [options])</code></div><pre class="doc">A route for serving resources on the classpath. Accepts the following
keys:
  :root - the root prefix to get the resources from. Defaults to 'public'.</pre><div class="src-link"><a href="http://github.com/weavejester/compojure/blob/1.1.3/src/compojure/route.clj#L26">Source</a></div></div></div></body></html>
Something went wrong with that request. Please try again.