mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature(cloudcmd) add support of express mounting point (#200)
This commit is contained in:
parent
8a92c97485
commit
51ee3773f7
7 changed files with 15 additions and 47 deletions
|
|
@ -40,7 +40,10 @@ module.exports = async (options) => {
|
|||
if (logger)
|
||||
app.use(logger('dev'));
|
||||
|
||||
app.use(cloudcmd({
|
||||
if (prefix)
|
||||
app.get('/', (req, res) => res.redirect(prefix + '/'));
|
||||
|
||||
app.use(prefix, cloudcmd({
|
||||
config: options,
|
||||
socket: io(server, {
|
||||
path: `${prefix}/socket.io`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue