fix db module imports

This commit is contained in:
Arthur Lu
2023-08-03 19:51:09 +00:00
parent c5f7239813
commit 221c854d50
4 changed files with 12 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ const requestPVE = global.pve.requestPVE;
* request and responses passed through to/from proxmox
*/
router.get("/*", async (req, res) => { // proxy endpoint for GET proxmox api with no token
console.log(req.url);
const path = req.url.replace("/api/proxmox", "");
const result = await requestPVE(path, "GET", req.cookies);
res.status(result.status).send(result.data);