2016-05-17 21:50:37 +02:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as UserController from '../controllers/user.controller';
|
2017-02-22 20:29:35 +01:00
|
|
|
|
2016-05-17 21:50:37 +02:00
|
|
|
const router = new Router();
|
|
|
|
|
2016-06-09 02:52:59 +02:00
|
|
|
router.route('/signup').post(UserController.createUser);
|
|
|
|
|
2016-09-02 20:51:30 +02:00
|
|
|
router.route('/signup/duplicate_check').get(UserController.duplicateUserCheck);
|
|
|
|
|
2016-08-05 03:43:13 +02:00
|
|
|
router.route('/preferences').put(UserController.updatePreferences);
|
|
|
|
|
2016-10-12 20:25:24 +02:00
|
|
|
router.route('/reset-password').post(UserController.resetPasswordInitiate);
|
|
|
|
|
2016-10-18 22:07:25 +02:00
|
|
|
router.route('/reset-password/:token').get(UserController.validateResetPasswordToken);
|
|
|
|
|
|
|
|
router.route('/reset-password/:token').post(UserController.updatePassword);
|
|
|
|
|
2016-05-17 21:50:37 +02:00
|
|
|
export default router;
|