mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 00:21:18 +00:00
test(config) coverage: middle
This commit is contained in:
parent
81f4a207a7
commit
aa707d9afb
2 changed files with 21 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ const CloudFunc = require(DIR_COMMON + 'cloudfunc');
|
|||
|
||||
const fullstore = require('fullstore/legacy');
|
||||
const currify = require('currify/legacy');
|
||||
const wraptile = require('wraptile/legacy');
|
||||
const squad = require('squad');
|
||||
const promisify = require('es6-promisify');
|
||||
const pullout = promisify(require('pullout/legacy'));
|
||||
|
|
@ -126,9 +125,9 @@ function connection(socket) {
|
|||
function middle(req, res, next) {
|
||||
const noConfigDialog = !manage('configDialog');
|
||||
|
||||
if (req.url !== apiURL + '/config')
|
||||
if (req.url !== `${apiURL}/config`)
|
||||
return next();
|
||||
|
||||
|
||||
switch(req.method) {
|
||||
case 'GET':
|
||||
get(req, res, next);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue