This commit is contained in:
Mr Swift
2024-04-27 21:14:17 +03:30
parent 3ae3f44ee9
commit 52984759ee
2 changed files with 3 additions and 1 deletions
View File
+3 -1
View File
@@ -27,12 +27,14 @@ app.use(swiftly.middleware.sign("Mr Swift"))
// Routes
app.use(autoFetch(express))
app.use(autoFetch(express, pAddress = "hasPermission", cAddress = "Admin", mAddress = "middleware"))
app.use('/uploads', expressSharp({
imageAdapter: new FsAdapter(path.join(__dirname, 'uploads')),
}));
app.use('/vid', videovalidate.run, expressSharp({
imageAdapter: new FsAdapter(path.join(__dirname, 'Data')),
imageAdapter: new FsAdapter(path.join(__dirname, 'Videos')),
}));
//Error handler
app.use(errorHandler.run);