Skip to content

Instantly share code, notes, and snippets.

@fponticelli
Created February 24, 2015 17:53
Show Gist options
  • Save fponticelli/e3d57ea6f0e97cd6d951 to your computer and use it in GitHub Desktop.
Save fponticelli/e3d57ea6f0e97cd6d951 to your computer and use it in GitHub Desktop.
sample Auth with abe
@: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