diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index 7077b327..6a306d7c 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -3,7 +3,7 @@ library angel.routes.controllers.auth; import 'package:angel_common/angel_common.dart'; import '../../services/user.dart'; -@Expose('/api/auth') +@Expose('/auth') class AuthController extends Controller { AngelAuth auth; @@ -36,7 +36,7 @@ class AuthController extends Controller { await app.configure(auth); } - @Expose('/login', method: 'POST') + @Expose('/local', method: 'POST') login() => auth.authenticate('local'); @Expose('/register', method: 'POST')