Update auth.dart
This commit is contained in:
parent
0bf8371f8d
commit
318dcfe42a
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue