Skip to content

Instantly share code, notes, and snippets.

@wunki
Created May 22, 2014 10:24
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 wunki/f38a6f869f1cef476af6 to your computer and use it in GitHub Desktop.
Save wunki/f38a6f869f1cef476af6 to your computer and use it in GitHub Desktop.
Extract `:auth-level` in middleware.
(defnk $GET
"Get the Authenticated user"
{:responses {200 s/Any}
:auth-level #{:user}}
[[:resources user]]
{:status 200
:body {:foo "bar"}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment