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
After using this library, the docs have only model routes, authentication route is completely invisible.
app.configure(sequelize);// Configure other middleware (see `middleware/index.js`)app.configure(middleware);app.configure(authentication);app.configure(sequelizeToJsonSchemasasany);app.configure(swagger({openApiVersion: 3,uiIndex: true,docsPath: '/docs',docsJsonPath: '/docs/schema',specs: {info: {title: 'XYZ',description: 'Documentaition by [@justraman](https://github.com/justraman)',version: '0.0.1',},},defaults: {schemasGenerator(service,model,modelName){constmodelSchema=app.get('jsonSchemaManager').generate(service.options.Model,app.get('openApi3Strategy'),service.options.Model.options.jsonSchema,);return{[model]: modelSchema,[`${model}_list`]: {title: `${modelName} list`,type: 'array',items: {$ref: `#/components/schemas/${model}`},},};},},}),)// Set up our services (see `services/index.js`)app.configure(services);// Set up event channels (see channels.js)app.configure(channels);// Configure a middleware for 404s and the error handlerapp.use(express.notFound());app.use(express.errorHandler({ logger }asany));app.hooks(appHooks);
The text was updated successfully, but these errors were encountered:
After using this library, the docs have only model routes, authentication route is completely invisible.
The text was updated successfully, but these errors were encountered: