style fix

This commit is contained in:
Arthur Lu 2023-05-11 07:10:22 +00:00
parent 3d72e189d4
commit 2a37423dd9

View File

@ -17,7 +17,6 @@ app.use(cookieParser())
app.use(cors({origin: domain})); app.use(cors({origin: domain}));
app.use(morgan("combined")); app.use(morgan("combined"));
app.get("/api/version", (req, res) => { app.get("/api/version", (req, res) => {
res.status(200).send({version: api.version}); 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); res.status(result.status).send(result.data);
}); });
app.get("/api/user", async(req, res) => { app.get("/api/user", async (req, res) => {
// check auth // check auth
await checkAuth(req.cookies, res); await checkAuth(req.cookies, res);
res.status(200).send(await getUserData(req, req.cookies.username)); res.status(200).send(await getUserData(req, req.cookies.username));