diff --git a/test/explorer.test.js b/test/explorer.test.js index 05cb851..a208544 100644 --- a/test/explorer.test.js +++ b/test/explorer.test.js @@ -71,8 +71,12 @@ describe('explorer', function() { app.use(restUrlBase, loopback.rest()); app.use('/explorer', explorer(app, { basePath: restUrlBase })); } else { - app.use(loopback.rest()); + // LoopBack REST adapter owns the whole URL space and does not + // let other middleware handle same URLs. + // It's possible to circumvent this measure by installing + // the explorer middleware before the REST middleware. app.use('/explorer', explorer(app)); + app.use(loopback.rest()); } done(); }