123456789101112131415161718 |
- /*
- Helper Class
- This script handles basic stuffs
- */
- function filepathClean(webroot){
- if (webroot.substr(webroot.length -1, 1) == "/"){
- webroot = webroot.substr(0, webroot.length - 1);
- }
- return webroot;
- }
- function retrunErrorObject(message){
- sendJSONResp(JSON.stringify({
- error: message
- }))
- }
|