changed get request to post
This commit is contained in:
22
src/web_console/services/navigation_service.js
Normal file
22
src/web_console/services/navigation_service.js
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user