|
@ -1,15 +1,20 @@ |
|
|
const routes = require('express').Router(); |
|
|
const routes = require('express').Router(); |
|
|
|
|
|
|
|
|
const utils = require('../utils/utils.js'); |
|
|
|
|
|
|
|
|
const pageBuilder = require('../utils/pageBuilder'); |
|
|
|
|
|
|
|
|
routes.get('/', (request, result) => |
|
|
routes.get('/', (request, result) => |
|
|
{ |
|
|
{ |
|
|
require("../blog/contact.js").main(request, result); |
|
|
require("../blog/contact.js").main(request, result); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
routes.post('/', (request, result) => |
|
|
|
|
|
{ |
|
|
|
|
|
require("../blog/contact.js").main(request, result); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
routes.get('*', (request, result) => |
|
|
routes.get('*', (request, result) => |
|
|
{ |
|
|
{ |
|
|
utils.print404(result); |
|
|
|
|
|
|
|
|
pageBuilder.print404(result); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
module.exports = routes; |
|
|
module.exports = routes; |