mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
docs(readme) Using as middleware: quotes
This commit is contained in:
parent
7645daa9f6
commit
87895ab946
1 changed files with 2 additions and 2 deletions
|
|
@ -82,12 +82,12 @@ const prefix = '/cloudcmd';
|
|||
|
||||
const server = http.createServer(app);
|
||||
const socket = io.listen(server, {
|
||||
path: `${prefix}/socket.io'
|
||||
path: `${prefix}/socket.io`
|
||||
});
|
||||
|
||||
const config = {
|
||||
prefix /* base URL or function which returns base URL (optional) */
|
||||
}
|
||||
};
|
||||
|
||||
app.use(cloudcmd({
|
||||
socket, /* used by Config, Edit (optional) and Console (required) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue