2016-07-14 00:53:56 +02:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as FileController from '../controllers/file.controller';
|
|
|
|
|
|
|
|
const router = new Router();
|
|
|
|
|
|
|
|
router.route('/projects/:project_id/files').post(FileController.createFile);
|
2016-08-24 23:59:15 +02:00
|
|
|
router.route('/projects/:project_id/files/:file_id').delete(FileController.deleteFile);
|
2016-11-08 22:50:21 +01:00
|
|
|
router.route('/projects/:project_id/*?').get(FileController.getFileContent);
|
2016-07-14 00:53:56 +02:00
|
|
|
|
|
|
|
export default router;
|