merged private server and console to private-cloud
This commit is contained in:
17
console/services/navigation_service.js
Normal file
17
console/services/navigation_service.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Created by Strawmanbobi
|
||||
* 2016-12-05
|
||||
*/
|
||||
|
||||
// system inclusion
|
||||
|
||||
/*
|
||||
* 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