Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
345 B

  1. const routes = require('express').Router();
  2. const pageBuilder = require('../utils/pageBuilder');
  3. routes.get('/', (request, result) =>
  4. {
  5. pageBuilder.buildPageWithTemplate(request, result,
  6. (p1,p2,p3)=>{}, "blog/about.html");
  7. });
  8. routes.get('*', (request, result) =>
  9. {
  10. pageBuilder.print404(result);
  11. });
  12. module.exports = routes;