style fix
This commit is contained in:
parent
3d72e189d4
commit
2a37423dd9
3
main.js
3
main.js
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user