mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +00:00
Remove file uploads
This commit is contained in:
parent
f89dc00fa0
commit
1cc0721cba
2 changed files with 0 additions and 7 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import router from "./router";
|
||||
import graphql from "./graphql";
|
||||
import fileUpload from "express-fileupload";
|
||||
import cors, { CorsOptions } from "cors";
|
||||
import bodyParser from "body-parser";
|
||||
import Sentry from "@sentry/node";
|
||||
|
|
@ -150,10 +149,6 @@ export function createApp({ eventHandler, extraMiddleware, logger }: Options) {
|
|||
// parse application/json
|
||||
app.use(bodyParser.json() as RequestHandler);
|
||||
|
||||
// Configure File Uploads
|
||||
const limits = { fileSize: 50 * 1024 * 1024 };
|
||||
app.use(fileUpload({ limits }));
|
||||
|
||||
// Configure sitemap
|
||||
app.use(expressSitemapXml(getSitemapUrls, "https://skins.webamp.org"));
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
"dotenv": "^16.0.0",
|
||||
"express": "^4.17.1",
|
||||
"express-async-handler": "^1.1.4",
|
||||
"express-fileupload": "^1.1.7-alpha.3",
|
||||
"express-graphql": "^0.12.0",
|
||||
"express-sitemap-xml": "^2.0.0",
|
||||
"fast-xml-parser": "^4.2.2",
|
||||
|
|
@ -61,7 +60,6 @@
|
|||
"@types/cookie-session": "^2.0.48",
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "4.17.9",
|
||||
"@types/express-fileupload": "^1.4.4",
|
||||
"@types/express-sitemap-xml": "^1.1.1",
|
||||
"@types/lru-cache": "^5.1.0",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue