From 4e3627622af4c42f9427dc44aaf326ee012804b9 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Wed, 7 Mar 2018 11:17:48 +0000 Subject: changed login endpoint to oauth --- src/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auth.ts') diff --git a/src/auth.ts b/src/auth.ts index 5a1707c..1ecd1c5 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -101,7 +101,7 @@ export class AuthRouter { public init(): void { this.configStrategy(); - this.router.post('/login', this.checkErr, this.authenticate, this.genToken); + this.router.post('/oauth/token', this.checkErr, this.authenticate, this.genToken); this.router.get( '/logout', (req: Request, res: Response): void => { req.logout(); } -- cgit v1.2.1