add default export to db and package module,

start grouping routes by type,
use dynamic imports and express routers
This commit is contained in:
2023-07-27 20:10:46 +00:00
parent ae58a18c9a
commit aae3bb14c0
14 changed files with 1327 additions and 1191 deletions

View File

@@ -1,5 +1,7 @@
import axios from "axios";
import { pveAPI, pveAPIToken } from "./db.js";
import db from "./db.js";
const pveAPI = db.pveAPI;
const pveAPIToken = db.pveAPIToken;
/**
* Send HTTP request to proxmox API. Allows requests to be made with user cookie credentials or an API token for controlled priviledge elevation.