aboutsummaryrefslogtreecommitdiff
path: root/src/auth.ts
diff options
context:
space:
mode:
authorTom Harley2018-03-07 13:33:48 +0000
committerTom Harley2018-03-07 13:33:48 +0000
commit7558f885dba6d1d9bbc3cdde87b3ec98e5cb6c99 (patch)
treead14adf98b0e38ffebdbe7dc8a2abdeaedfeddbd /src/auth.ts
parentMerge 'origin/testing-middleware' into trh/payload-checker (diff)
parentchanged login endpoint to oauth (diff)
downloadmedicine-7558f885dba6d1d9bbc3cdde87b3ec98e5cb6c99.tar.gz
medicine-7558f885dba6d1d9bbc3cdde87b3ec98e5cb6c99.zip

Merge remote branch ‘trh/payload-checker’ into trh/payload-checker

Diffstat (limited to 'src/auth.ts')
-rw-r--r--src/auth.ts2
1 files changed, 1 insertions, 1 deletions
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(); }