Closed cgguevara closed 2 years ago
after create an instance of koaSwagger = require('koa2-swagger-ui')
when I try to use it setting in the router router.use(koaSwagger({ swaggerOptions: { spec } }));
It's giving the error TypeError: koaSwagger is not a function
its in the readme
after create an instance of koaSwagger = require('koa2-swagger-ui')
when I try to use it setting in the router router.use(koaSwagger({ swaggerOptions: { spec } }));
It's giving the error TypeError: koaSwagger is not a function