p5.js-web-editor/server/routes/user.routes.js

21 lines
666 B
JavaScript
Raw Normal View History

import { Router } from 'express';
import * as UserController from '../controllers/user.controller';
const router = new Router();
router.route('/signup').post(UserController.createUser);
2016-09-02 20:51:30 +02:00
router.route('/signup/duplicate_check').get(UserController.duplicateUserCheck);
router.route('/preferences').put(UserController.updatePreferences);
2016-10-12 20:25:24 +02:00
router.route('/reset-password').post(UserController.resetPasswordInitiate);
router.route('/reset-password/:token').get(UserController.validateResetPasswordToken);
router.route('/reset-password/:token').post(UserController.updatePassword);
router.route('/account').put(UserController.updateSettings);
export default router;