ecommerce-website/routes/checkout.js

24 lines
797 B
JavaScript

const express = require('express');
const router = express.Router();
const { getUser } = require('../util.js');
router.get('/', function(req, res, next) {
res.render('layouts/main', {
title: 'Grocery Checkout Line',
loggedIn: true,
user: getUser(req),
spacer: true,
content: `
<h1> Verify your credentials to continue. </h1>
<form method="get" action="/order">
<input type="text" name="customerId" size="50" placeholder="Customer ID"><br>
<input type="password" name="password" size="50" placeholder="Password"><br>
<input type="submit" value="Submit"><input type="reset" value="Reset">
</form>
`,
});
});
module.exports = router;