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.

13 lines
332 B

  1. const routes = require('express').Router();
  2. /** used to parse the request URL */
  3. const url = require('url');
  4. routes.get('*', (request, result) =>
  5. {
  6. console.log("ping");
  7. const filename = url.parse(request.url, true).pathname;
  8. require("../../includes/downloads.js").main(result, filename);
  9. });
  10. module.exports = routes;