LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

fix bug preventing swagger docs from displaying #2

Closed LAMaglan closed 8 months ago

LAMaglan commented 8 months ago

response_class won't be applicable to a Jinja2Templates.TemplateResponse in this manner. It's interrupting FastAPI's ability to generate the OpenAPI schema.