changed get request to post

This commit is contained in:
strawmanbobi
2016-12-05 21:30:16 +08:00
parent 8da5f4414e
commit 5272fe6c9e
20 changed files with 387 additions and 431 deletions

View File

@@ -0,0 +1,22 @@
/**
* Created by Strawmanbobi
* 2016-12-05
*/
// system inclusion
var constants = require('../mini_poem/configuration/constants');
var formidable = require('formidable');
// local inclusion
var logger = require('../mini_poem/logging/logger4js').helper;
/*
* function : Navigation to certain URL
* parameter : Name of page to navigate
* return : Redirect to the certain URL
*/
exports.navToURL = function(req, res) {
var bodyParam = req.body;
var page = bodyParam.page;
res.redirect("/" + page);
};