Skip to content

Instantly share code, notes, and snippets.

@senior
Created February 25, 2011 15:31
Show Gist options
  • Select an option

  • Save senior/843940 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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