feat(utilities): PREFIX config
feat(sourcemaps-reader): PREFIX config
This commit is contained in:
parent
d8c5e769d5
commit
fb16b998cb
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ app.get([PREFIX, `${PREFIX}/`, `${PREFIX}/${P_KEY}`, `${PREFIX}/${P_KEY}/`], (re
|
|||
}
|
||||
);
|
||||
app.use(`${PREFIX}/${P_KEY}/sourcemaps`, sourcemapsReaderServer);
|
||||
heapdump && app.use(`${PREFIX}/heapdump/${P_KEY}`, dumps.router);
|
||||
heapdump && app.use(`${PREFIX}/${P_KEY}/heapdump`, dumps.router);
|
||||
|
||||
const server = app.listen(PORT, HOST, () => {
|
||||
console.log(`SR App listening on http://${HOST}:${PORT}`);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ wsapp.get(['/', PREFIX, `${PREFIX}/`, `${PREFIX}/${P_KEY}`, `${PREFIX}/${P_KEY}/
|
|||
}
|
||||
);
|
||||
wsapp.use(`${PREFIX}/${P_KEY}`, socket.wsRouter);
|
||||
heapdump && wsapp.use(`${PREFIX}/heapdump/${P_KEY}`, dumps.router);
|
||||
heapdump && wsapp.use(`${PREFIX}/${P_KEY}/heapdump`, dumps.router);
|
||||
|
||||
const wsserver = wsapp.listen(PORT, HOST, () => {
|
||||
console.log(`WS App listening on http://${HOST}:${PORT}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue