From 318dcfe42abd7cf84d2d2b31de87ded6b734c2fc Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sat, 25 Feb 2017 09:02:25 -0500 Subject: [PATCH] Update auth.dart --- lib/src/routes/controllers/auth.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index 7077b32..6a306d7 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')