2016-07-13 22:53:56 +00:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as FileController from '../controllers/file.controller';
|
2018-01-09 20:57:49 +00:00
|
|
|
import isAuthenticated from '../utils/isAuthenticated';
|
2016-07-13 22:53:56 +00:00
|
|
|
|
|
|
|
const router = new Router();
|
|
|
|
|
2018-01-09 20:57:49 +00:00
|
|
|
router.post('/projects/:project_id/files', isAuthenticated, FileController.createFile);
|
|
|
|
router.delete('/projects/:project_id/files/:file_id', isAuthenticated, FileController.deleteFile);
|
2016-07-13 22:53:56 +00:00
|
|
|
|
2016-11-17 16:15:35 +00:00
|
|
|
export default router;
|