mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 07:35:02 +00:00
Initial dashboard work (auth flow)
This commit is contained in:
parent
9109e9a2c3
commit
c94c8849a5
18 changed files with 3808 additions and 31 deletions
19
src/dashboard/api/index.ts
Normal file
19
src/dashboard/api/index.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
require("dotenv").config();
|
||||
|
||||
import express from "express";
|
||||
import initAuth from "./auth";
|
||||
import { connect } from "../../data/db";
|
||||
|
||||
console.log("Connecting to database...");
|
||||
connect().then(() => {
|
||||
const app = express();
|
||||
|
||||
initAuth(app);
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.end("Hi");
|
||||
});
|
||||
|
||||
const port = process.env.PORT || 3000;
|
||||
app.listen(port, () => console.log(`API server listening on port ${port}`));
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue