Update auth.dart
This commit is contained in:
parent
acb641d324
commit
7b90bc22a7
1 changed files with 2 additions and 4 deletions
|
@ -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...
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue