10 lines
398 B
JavaScript
10 lines
398 B
JavaScript
import { Router } from 'express';
|
|
import * as FileController from '../controllers/file.controller';
|
|
import isAuthenticated from '../utils/isAuthenticated';
|
|
|
|
const router = new Router();
|
|
|
|
router.post('/projects/:project_id/files', isAuthenticated, FileController.createFile);
|
|
router.delete('/projects/:project_id/files/:file_id', isAuthenticated, FileController.deleteFile);
|
|
|
|
export default router;
|