LAMaglan / PokeFightSimulator

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

GET vs. POST? #60

Open LAMaglan opened 5 months ago

LAMaglan commented 5 months ago

Although working, It is possible that it makes more "sense "for battle and types endpoints to be POST requests (i.e. app.post) than GET requests. Investigate, if refactoring, make necessary updates

LAMaglan commented 5 months ago

Revisit at later date. Changing to POST requires some changing of the code, more than just @app.get to @app.post

Possible that one part is to switch templates.TemplateResponse() to RedirectResponse (from starlette.responses)