Update auth.dart

This commit is contained in:
Tobe O 2017-02-18 22:23:43 -05:00 committed by GitHub
parent acb641d324
commit 7b90bc22a7

View file

@ -37,12 +37,10 @@ class AuthController extends Controller {
}
@Expose('/login', method: 'POST')
login(RequestContext req) async {
// Include log-in logic here...
}
login(RequestContext req) async => auth.authenticate('local');
@Expose('/register', method: 'POST')
register(RequestContext req, UserService Users) async {
register(RequestContext req, UserService userService) async {
// And your registration logic...
}
}