mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudcmd) prefix property deprecated
This commit is contained in:
parent
d7957002ee
commit
7e0d44b480
2 changed files with 6 additions and 2 deletions
5
HELP.md
5
HELP.md
|
|
@ -276,9 +276,10 @@ server = http.createServer(app);
|
|||
socket = io.listen(server);
|
||||
|
||||
app.use(cloudcmd({
|
||||
prefix: '/cloudcmd',/* base URL or function which returns base URL (optional) */
|
||||
socket: socket, /* used by Config, Edit (optional) and Console (required) */
|
||||
config: {} /* config data (optional) */
|
||||
config: { /* config data (optional) */
|
||||
prefix: '/cloudcmd', /* base URL or function which returns base URL (optional) */
|
||||
}
|
||||
}));
|
||||
|
||||
server.listen(PORT);
|
||||
|
|
|
|||
|
|
@ -55,6 +55,9 @@
|
|||
options = p.config || {},
|
||||
keys = Object.keys(options);
|
||||
|
||||
if (typeof params.prefix !== undefined)
|
||||
console.log('cloudcmd: prefix property deprecated, use config.prefix instead');
|
||||
|
||||
keys.forEach(function(name) {
|
||||
var value = options[name];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue