9 lines
No EOL
319 B
JavaScript
9 lines
No EOL
319 B
JavaScript
import { Router } from 'express';
|
|
import * as FileController from '../controllers/file.controller';
|
|
|
|
const router = new Router();
|
|
|
|
router.route('/projects/:project_id/files').post(FileController.createFile);
|
|
router.route('/projects/:project_id/files/:file_id').delete(FileController.deleteFile);
|
|
|
|
export default router; |