From 1c9ab5c7f63fdc9af6c965edde691b04a82c66a5 Mon Sep 17 00:00:00 2001 From: 65160381 <65160381@go.buu.ac.th> Date: Tue, 25 Mar 2025 01:00:55 +0700 Subject: [PATCH] 7.1 --- app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.js b/app.js index 43fb0af..236e939 100644 --- a/app.js +++ b/app.js @@ -57,6 +57,12 @@ app.get('/', (req, res) => { } }); +const path = require('path'); + +app.get('/login', (req, res) => { + res.sendFile(path.join(__dirname, 'public', 'login.html')); +}); + app.post('/register', async (req, res) => { const { email, password } = req.body; -- GitLab