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

10 lines
280 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);
router.route('/preferences').put(UserController.updatePreferences);
export default router;