use experimental import assertion,
requires nodejs 18 or higher
This commit is contained in:
parent
3209c33b4e
commit
53d7d79886
3
main.js
3
main.js
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user