Created
May 22, 2014 10:24
-
-
Save wunki/f38a6f869f1cef476af6 to your computer and use it in GitHub Desktop.
Extract `:auth-level` in middleware.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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