aboutsummaryrefslogtreecommitdiffstats
path: root/src/backend/ts/index.ts
blob: a6dab5b38e39dfcb26249dee16781c8dfa6032b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import express from 'express';
import login from './api/login';
import * as dotenv from 'dotenv';

dotenv.config();
const app = express();
const PORT = 8000;

app.use("/", express.static("./public"));

app.get('/login', (req, res) => login(req, res));

app.listen(PORT, () => {
  console.log(`[server]: Server is running at https://localhost:${PORT}`);
});