Skip to content

Instantly share code, notes, and snippets.

@senior
Created February 25, 2011 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save senior/843940 to your computer and use it in GitHub Desktop.
Save senior/843940 to your computer and use it in GitHub Desktop.
defroutes example
(defroutes admin-app
(GET "/sparql-ui" [query]
(if query
(let [result (dostuff)]
{:body (apply str (template query result))})
{:body (apply str (template nil nil))}))
(route/not-found "<h1>Page not found</h1>"))
@jcromartie
Copy link

I have a redirect fn here: https://gist.github.com/843950

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment