elysiajs / elysia-swagger

A plugin for Elysia to auto-generate Swagger page
MIT License
90 stars 46 forks source link

Document setting content-type of response object #55

Open KilianB opened 1 year ago

KilianB commented 1 year ago

I am attempting to use a non default content type "text/event-stream" and have a very hard time figuring out how to specify this.

The content type is taken from app.routes -> hooks.type, but how do you actually set this value? Can an example please be added to the documentation?