From 2a37423dd9c1b272800a4f008709bf87f54c83f5 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 11 May 2023 07:10:22 +0000 Subject: [PATCH] style fix --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 74e2177..4b68ad6 100644 --- a/main.js +++ b/main.js @@ -17,7 +17,6 @@ app.use(cookieParser()) app.use(cors({origin: domain})); app.use(morgan("combined")); - app.get("/api/version", (req, res) => { res.status(200).send({version: api.version}); }); @@ -43,7 +42,7 @@ app.post("/api/proxmox/*", async (req, res) => { // proxy endpoint for POST prox res.status(result.status).send(result.data); }); -app.get("/api/user", async(req, res) => { +app.get("/api/user", async (req, res) => { // check auth await checkAuth(req.cookies, res); res.status(200).send(await getUserData(req, req.cookies.username));