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
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
I am using swagger-tools/middleware. I would like to see the http request to be logged to console. Wondering how to do this effectively?
Here is my middleware code:
// Initialize the Swagger middleware
swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
// Route validated requests to appropriate controller
app.use(middleware.swaggerRouter(options));
// Serve the Swagger documents and Swagger UI
app.use(middleware.swaggerUi());
// Interpret Swagger resources and attach metadata to request - must be first in swagger-tools middleware chain
app.use(middleware.swaggerMetadata());
// Validate Swagger requests
app.use(middleware.swaggerValidator());
// Use security
app.use(middleware.swaggerSecurity({
Bearer: auth.verifyToken
}));
Thanks
S
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I am using swagger-tools/middleware. I would like to see the http request to be logged to console. Wondering how to do this effectively?
Here is my middleware code:
Thanks
S
The text was updated successfully, but these errors were encountered: