2016-06-17 20:11:52 +02:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as ProjectController from '../controllers/project.controller';
|
|
|
|
|
|
|
|
const router = new Router();
|
|
|
|
|
|
|
|
router.route('/projects').post(ProjectController.createProject);
|
|
|
|
|
2016-06-19 00:33:49 +02:00
|
|
|
router.route('/projects/:project_id').put(ProjectController.updateProject);
|
|
|
|
|
|
|
|
router.route('/projects/:project_id').get(ProjectController.getProject);
|
|
|
|
|
2016-06-17 20:11:52 +02:00
|
|
|
export default router;
|