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