jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.69k stars 95 forks source link

"The JSON API uses the POST method for all requests" #19

Closed pudiva closed 7 years ago

pudiva commented 7 years ago

EHLO,

i am considering Roda and Rodauth for my current project and just stumbled this "The JSON API uses the POST method for all requests". why did you make it that way? is it possible to enable teh GET?

i googled around for a whiel and could only find people saying "this is bad design since POST isnt cacheable" and stuff.

<3

jeremyevans commented 7 years ago

Rodauth's JSON API is only for logging in and making changes, there is very little reason to use GET for those (you generally wouldn't want to cache them). You can certainly use GET and other methods in your Roda app.

In the future, as mentioned in the contribution guidelines, please ask similar questions on IRC or the Google Group. GitHub Issues should only be used to report bugs in the library.

pudiva commented 7 years ago

ok! ty and sry!