use experimental import assertion,

requires nodejs 18 or higher
This commit is contained in:
Arthur Lu 2023-04-26 01:40:12 +00:00
parent 2deda42ec5
commit 6fc9113e4f

View File

@ -4,8 +4,7 @@ import cookieParser from "cookie-parser";
import cors from "cors"; import cors from "cors";
import helmet from "helmet"; import helmet from "helmet";
import morgan from "morgan"; import morgan from "morgan";
//import { version as _version } from "./package.json"; import api from "./package.json" assert {type: "json"};
let api = {version: "0.0.1"};
import { pveAPIToken, listenPort, domain } from "./vars.js"; import { pveAPIToken, listenPort, domain } from "./vars.js";
import { checkAuth, requestPVE, handleResponse, getDiskInfo } from "./pve.js"; import { checkAuth, requestPVE, handleResponse, getDiskInfo } from "./pve.js";