Make requested changes (pr792)

This commit is contained in:
TheArcaneBrony
2022-07-31 13:27:15 +02:00
parent cf3873d62f
commit 6e9bd98711
4 changed files with 4 additions and 20 deletions

2
.gitignore vendored
View File

@@ -11,3 +11,5 @@ config.json
.vscode/settings.json
api/assets/plugins/*.js
.idea/
*.code-workspace

View File

@@ -27,7 +27,6 @@ export default function TestClient(app: Application) {
newAssetCache = new Map<string, AssetCacheItem>(Object.entries(JSON.parse(rawdata.toString())));
}
//define routes
app.use("/assets", express.static(path.join(__dirname, "..", "..", "assets")));
app.get("/assets/:file", async (req: Request, res: Response) => {
delete req.headers.host;

View File

@@ -1,16 +1,3 @@
import { Headers } from "node-fetch";
export class AssetCacheItem {
public Key: string;
public FilePath: string;
public Headers: any;
constructor(key: string){
this.Key = key;
}
/*constructor(key: string, filePath: string, headers: Headers) {
this.Key = key;
this.FilePath = filePath;
this.Headers = headers;
}*/
constructor(public Key: string, public FilePath: string = "", public Headers: any = null as any) {}
}

View File

@@ -24,9 +24,5 @@
{
"path": "webrtc"
}
],
"settings": {
"awooga.originalColorCustomizations": {},
"workbench.colorCustomizations": {}
}
]
}