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.

12 lines
307 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. const filename = url.parse(request.url, true).pathname;
  7. require("../../includes/downloads.js").main(result, filename);
  8. });
  9. module.exports = routes;