Skip to content

Commit

Permalink
Remove /download-binary/ and prune unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyn-Price committed Nov 19, 2023
1 parent 0ec6d5a commit 2cc346d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 498 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@
"dependencies": {
"dotenv": "^16.3.1",
"escape-html": "^1.0.3",
"express": "^4.17.1",
"express-http-proxy": "^1.6.3",
"promise.any": "^2.0.3"
"express": "^4.17.1"
},
"devDependencies": {
"@types/es-aggregate-error": "^1.0.2",
"@types/escape-html": "^1.0.2",
"@types/express": "^4.17.13",
"@types/express-http-proxy": "^1.6.3",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/promise.any": "^2.0.0",
"@types/supertest": "^2.0.11",
"cross-env": "^7.0.3",
"esbuild": "^0.18.11",
Expand Down
5 changes: 0 additions & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import normaljar from "./normaljar";
import pom from "./pom";
import testing from "./testing";
import verifyParams from "./verifyparams";
import { pipeline } from "stream/promises";
import { Readable } from "stream";
import proxy from "express-http-proxy";
import path from "path";

const app = express();

Expand All @@ -27,6 +23,5 @@ app.get(`${urlBase}.*`, verifyParams, direct)

app.get("/test/:id/:fileIds/:classifier?", testing)
app.get('/source', (_, res) => res.redirect("https://github.com/Wyn-Price/CurseMaven/"));
app.get("/download-binary/*", proxy("https://mediafilez.forgecdn.net", { proxyReqPathResolver: req => `/files/${req.params[0]}` }));

export default app
Loading

1 comment on commit 2cc346d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment has failed :(

Please sign in to comment.