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.
 
 

14 lines
332 B

const routes = require('express').Router();
/** used to parse the request URL */
const url = require('url');
routes.get('*', (request, result) =>
{
console.log("ping");
const filename = url.parse(request.url, true).pathname;
require("../../includes/downloads.js").main(result, filename);
});
module.exports = routes;