p5.js-web-editor/server/routes/user.routes.js
2016-09-02 14:51:30 -04:00

11 lines
361 B
JavaScript

import { Router } from 'express';
import * as UserController from '../controllers/user.controller';
const router = new Router();
router.route('/signup').post(UserController.createUser);
router.route('/signup/duplicate_check').get(UserController.duplicateUserCheck);
router.route('/preferences').put(UserController.updatePreferences);
export default router;