diff --git a/src/api/routes/FileSystem.ts b/src/api/routes/FileSystem.ts new file mode 100644 index 0000000..814e676 --- /dev/null +++ b/src/api/routes/FileSystem.ts @@ -0,0 +1,18 @@ +/* eslint-disable consistent-return */ +import { Server } from '..'; +import { Route } from '../../class'; +import { Req } from '../interfaces'; + +export default class FileSystem extends Route { + constructor(server: Server) { + super(server, { path: '/fs', deprecated: false, maintenance: true }); + } + + public bind() { + this.router.use(async (req, res, next) => { + await this.authorize(req, res, next); + }); + + this.router.get('/:'); + } +}