From 1f2791db4540ba1971684939296f84b65d239942 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 18:02:54 -0500 Subject: [PATCH] FS route --- src/api/routes/FileSystem.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/api/routes/FileSystem.ts 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('/:'); + } +}