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.
 
 

21 lines
433 B

const routes = require('express').Router();
/** used to parse the request URL */
const url = require('url');
const contentLoader = require('../../includes/staticContentServer.js');
routes.get('*', (request, result) =>
{
var filename = url.parse(request.url, true).pathname;
if(!contentLoader.serveStaticContent(request, result, filename, "includes"))
{
//missing content
}
});
module.exports = routes;