mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-04 06:35:40 +00:00
Make requested changes (pr792)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,3 +11,5 @@ config.json
|
||||
.vscode/settings.json
|
||||
api/assets/plugins/*.js
|
||||
.idea/
|
||||
*.code-workspace
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
@@ -24,9 +24,5 @@
|
||||
{
|
||||
"path": "webrtc"
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"awooga.originalColorCustomizations": {},
|
||||
"workbench.colorCustomizations": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user