mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) terminal
This commit is contained in:
parent
bdf344fc2e
commit
ae6936d3c2
2 changed files with 26 additions and 7 deletions
|
|
@ -3,7 +3,9 @@
|
|||
const tryCatch = require('try-catch');
|
||||
const config = require('./config');
|
||||
|
||||
const noop = () => {};
|
||||
const noop = (req, res, next) => {
|
||||
next && next();
|
||||
};
|
||||
noop.listen = noop;
|
||||
|
||||
module.exports = (arg) => getTerminal(config('terminal'), arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue