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