{"size": 451, "ext": "js", "max_stars_repo_path": "src/file/file.router.js", "max_stars_repo_name": "dmogilevtsev/gif_manager_main", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/file/file.router.js", "max_issues_repo_name": "dmogilevtsev/gif_manager_main", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/file/file.router.js", "max_forks_repo_name": "dmogilevtsev/gif_manager_main", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.6923076923, "max_line_length": 65, "alphanum_fraction": 0.7804878049}
const Router = require('express')
const authMiddleware = require('../middlewares/auth.middleware')
const fileController = require('./file.controller')

const router = new Router()

router.post('/', authMiddleware, fileController.createDir)
router.post('/upload', authMiddleware, fileController.uploadFile)
router.get('/', authMiddleware, fileController.getFolder)
router.delete('/', authMiddleware, fileController.removeFile)

module.exports = router
