This commit is contained in:
tgpethan 2021-03-16 18:40:22 +00:00
parent 54d61dd2db
commit d934573dab

View file

@ -115,14 +115,14 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
function frameworkServer() { function frameworkServer() {
// Load in the request handler's extra required items. // Load in the request handler's extra required items.
reqhandler.extras(); await reqhandler.extras();
// Define where GET requests go to in the request handlers. // Define where GET requests go to in the request handlers.
app.get('*', (req, res) => { app.get('*', async (req, res) => {
res.set("X-Powered-By", "Revolution"); res.set("X-Powered-By", "Revolution");
reqhandler.get(req, res); reqhandler.get(req, res);
}); });
// Define where POST requests go to in the request handlers. // Define where POST requests go to in the request handlers.
app.post('*', (req, res) => { app.post('*', async (req, res) => {
res.set("X-Powered-By", "Revolution"); res.set("X-Powered-By", "Revolution");
reqhandler.post(req, res); reqhandler.post(req, res);
}); });