koa2-swagger-ui
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -9,2 +9,3 @@ const Koa = require('koa'); | ||
/* istanbul ignore if */ | ||
if (!module.parent) { | ||
@@ -11,0 +12,0 @@ app.listen(3000); |
@@ -30,3 +30,4 @@ const path = require('path'); | ||
return next(); | ||
} else if (ctx.path.indexOf(options.routePrefix) === 0) { | ||
} | ||
if (ctx.path.indexOf(options.routePrefix) === 0) { | ||
const truePath = ctx.path.substring(options.routePrefix.length, ctx.path.length); | ||
@@ -33,0 +34,0 @@ return send(ctx, truePath, { root: rootPath }); |
{ | ||
"name": "koa2-swagger-ui", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Swagger UI middleware for koa", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,3 +10,3 @@ const lint = require('mocha-eslint'); | ||
request(app.listen()) | ||
.get('/docs/index.html') | ||
.get('/docs') | ||
.expect('Content-Type', /html/) | ||
@@ -13,0 +13,0 @@ .expect(200) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36403
4328125
69