2016-05-17 19:50:37 +00:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as UserController from '../controllers/user.controller';
|
|
|
|
const router = new Router();
|
|
|
|
|
2016-06-09 00:52:59 +00:00
|
|
|
router.route('/signup').post(UserController.createUser);
|
|
|
|
|
2016-08-05 01:43:13 +00:00
|
|
|
router.route('/preferences').put(UserController.updatePreferences);
|
|
|
|
|
2016-05-17 19:50:37 +00:00
|
|
|
export default router;
|