Update auth.dart

This commit is contained in:
Tobe O 2017-02-25 09:02:25 -05:00 committed by GitHub
parent 0bf8371f8d
commit 318dcfe42a

View file

@ -3,7 +3,7 @@ library angel.routes.controllers.auth;
import 'package:angel_common/angel_common.dart'; import 'package:angel_common/angel_common.dart';
import '../../services/user.dart'; import '../../services/user.dart';
@Expose('/api/auth') @Expose('/auth')
class AuthController extends Controller { class AuthController extends Controller {
AngelAuth auth; AngelAuth auth;
@ -36,7 +36,7 @@ class AuthController extends Controller {
await app.configure(auth); await app.configure(auth);
} }
@Expose('/login', method: 'POST') @Expose('/local', method: 'POST')
login() => auth.authenticate('local'); login() => auth.authenticate('local');
@Expose('/register', method: 'POST') @Expose('/register', method: 'POST')