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

12 lines
361 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);
export default router;