dashboard: auth fixes, guild listing, config editing

This commit is contained in:
Dragory 2019-06-23 03:40:53 +03:00
parent 1dae3019c4
commit 7bda2b1763
14 changed files with 200 additions and 42 deletions

View file

@ -20,6 +20,11 @@ connect().then(() => {
initAuth(app);
initGuildsAPI(app);
app.use((err, req, res, next) => {
res.status(err.status || 500);
res.json({ error: err.message });
});
app.get("/", (req, res) => {
res.end({ status: "cookies" });
});