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,7 +1,7 @@
import { createHash } from "crypto";
import { getUsedResources, requestPVE } from "./pve.js";
import { db } from "./db.js";
import db from "./db.js";
/**
* Check if a user is authorized to access a specified vm, or the cluster in general.