Forum Discussion

bluesky49's avatar
bluesky49
New Contributor
2 years ago

Integration swagger with Express

I have faced critical issue while integrating swagger into express project.

I have followed the swagger document but swagger endpoint returns raw HTML.

Who can help me?

  • HI bluesky49 ,

     

    That sounds like a middleware issue, where the "Content-Type" is text/plain (or similar), instead of text/html.

     

    • bluesky49's avatar
      bluesky49
      New Contributor

      I have tried it, but the error happened again.