You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a return there ends the koa request loop. Check that you don't have something setting the body to something else. Or put the middleware behind the router you use for everything else.
I fix it manually via edit node_modules/koa2-swagger-ui/lib/index.js
return function koaSwaggerUi(ctx, next) {
if (options.routePrefix === false || ctx.path === options.routePrefix) {
ctx.type = 'text/html';
ctx.body = index(options);
return; //add return here
}
return next();
};
The text was updated successfully, but these errors were encountered: