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.
 
 

18 lines
468 B

const routes = require('express').Router();
const builder = require('../../utils/pageBuilder');
routes.get('/', (request, result) =>
{
builder.constructAdminPage(request, result, require("../../admin/adminDownloads").main)
});
routes.post('/', (request, result) =>
{
builder.adminPostRoute(request ,require("../../admin/adminDownloads").processPostData).then(function()
{
result.redirect('/admin/downloads');
})
});
module.exports = routes;