Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 99df7982 authored by 65160381's avatar 65160381
Browse files

6

parent 16287b80
No related branches found
No related tags found
No related merge requests found
Pipeline #585 passed with warnings
...@@ -51,9 +51,9 @@ pool.getConnection() ...@@ -51,9 +51,9 @@ pool.getConnection()
// ตัวอย่าง route ทดสอบ // ตัวอย่าง route ทดสอบ
app.get('/', (req, res) => { app.get('/', (req, res) => {
if (req.session.user) { if (req.session.user) {
res.sendFile(path.join(__dirname, 'public', 'index.ejs')); res.sendFile(path.join(__dirname, 'public', 'index.html'));
} else { } else {
res.redirect('/login');
} }
}); });
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment