Implement server-side authentication and update login UI texts

This commit is contained in:
2025-01-24 21:54:05 +01:00
parent 1edcefbd64
commit da2f568acf
4 changed files with 44 additions and 13 deletions

View File

@@ -3,6 +3,7 @@ const express = require('express');
const bodyParser = require('body-parser');
const debug = require('debug')('app');
const tasksRouter = require('./routes/tasks');
const authRouter = require('./routes/auth');
const app = express();
const port = 3044;
@@ -10,6 +11,7 @@ const port = 3044;
app.use(bodyParser.json());
app.use(express.static('public'));
app.use('/', tasksRouter);
app.use('/', authRouter);
app.listen(port, () => {
debug(`Server running at http://localhost:${port}`);