Created
February 24, 2015 17:53
-
-
Save fponticelli/e3d57ea6f0e97cd6d951 to your computer and use it in GitHub Desktop.
sample Auth with abe
This file contains hidden or 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
@:use(mw.BodyParser.json()) | |
class Auth implements abe.IRoute { | |
@:post("/auth") | |
@:args(body) | |
function login(user : String, password : String) { | |
response.send('$user:$password'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment