Compare commits

..

No commits in common. "d5cbdd63e0a315f4048ffa86c5f0b54d41d77e55" and "b15863581129006cbed50af9e5a4588458db00f0" have entirely different histories.

3 changed files with 0 additions and 13 deletions

View File

@ -4,7 +4,6 @@
"description": "Rooster voor Het Heerenlanden om leerlingen te laten weten of ze binnen of buiten gym hebben", "description": "Rooster voor Het Heerenlanden om leerlingen te laten weten of ze binnen of buiten gym hebben",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1", "express": "^4.17.1",
"mustache-express": "^1.3.0", "mustache-express": "^1.3.0",
"mysql": "^2.18.1" "mysql": "^2.18.1"

View File

@ -15,8 +15,6 @@ app.set('views', path.resolve('views/'));
app.engine('mustache', mustacheExpress(path.resolve('views/partials/'), '.mustache')); app.engine('mustache', mustacheExpress(path.resolve('views/partials/'), '.mustache'));
app.use(express.urlencoded());
var vars = { var vars = {
username: 'ARN' username: 'ARN'
} }
@ -33,11 +31,6 @@ app.get('/login/', (req, res) => {
res.render('login', vars); res.render('login', vars);
}); });
app.post('/login', (req, res) => {
console.log(req.body)
res.send('login attempt using the following credentials:');
});
app.get('/scss/:file', (req, res) => app.get('/scss/:file', (req, res) =>
res.sendFile(path.resolve('scss/' + req.params.file)) res.sendFile(path.resolve('scss/' + req.params.file))
); );

View File

@ -5,11 +5,6 @@
{{> nav}} {{> nav}}
<main> <main>
<h1>Login</h1> <h1>Login</h1>
<form method="post" action="#">
<input placeholder="Gebruikersnaam" type="text" name="username">
<input placeholder="Wachtwoord" type="text" name="password">
<button type="submit">Inloggen</button>
</form>
</main> </main>
{{> footer}} {{> footer}}
</body> </body>