mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
work on rest module
This commit is contained in:
parent
9c98bd901f
commit
876e79eddb
4 changed files with 62 additions and 35 deletions
15
cloudcmd.js
15
cloudcmd.js
|
|
@ -18,7 +18,11 @@
|
|||
Config = main.config;
|
||||
|
||||
readConfig();
|
||||
Server.start(Config, indexProcessing, appCacheProcessing);
|
||||
Server.start(Config, {
|
||||
index : indexProcessing,
|
||||
appcache : appCacheProcessing,
|
||||
rest : rest
|
||||
});
|
||||
|
||||
if(update)
|
||||
update.get();
|
||||
|
|
@ -75,6 +79,15 @@
|
|||
lAppCache.createManifest();
|
||||
}
|
||||
|
||||
/**
|
||||
* rest interface
|
||||
* @pConnectionData {request, responce}
|
||||
*/
|
||||
function rest(pConnectionData){
|
||||
console.log('rest');
|
||||
Util.exec(main.rest, pConnectionData);
|
||||
}
|
||||
|
||||
function readConfig(){
|
||||
|
||||
/* Determining server.js directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue