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