Dashboard styling; don't allow login if you have no guild perms; allow logging out

This commit is contained in:
Dragory 2019-07-22 00:11:24 +03:00
parent a517ca3906
commit 0f724fc9bd
9 changed files with 132 additions and 35 deletions

View file

@ -1,7 +1,4 @@
import { error, notFound } from "./responses";
require("dotenv").config({ path: path.resolve(__dirname, "..", "..", "api.env") });
import express from "express";
import cors from "cors";
import { initAuth } from "./auth";
@ -10,6 +7,8 @@ import { initArchives } from "./archives";
import { connect } from "../data/db";
import path from "path";
require("dotenv").config({ path: path.resolve(__dirname, "..", "..", "api.env") });
console.log("Connecting to database...");
connect().then(() => {
const app = express();