Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
API or webapp/-page?
If it is a webapp, using GET and POST requests only is common, as plain HTML forms only accept those... -
better than that one API I worked with that uses GET and username & password are url query params and response throws back a token and other info that are & separated T_T
-
Wombat102446y@gitpush that is not a security issue perse. Only if connection is not encrypted. 😉
-
@Wombat aaah did not have that in mind, its ok man delete using a post request, don't nag :P
-
@Wombat When the server has enabled access logging, GET requests are being logged with all parameters by default...
-
nitnip18136yIf it's a webapp, as @sbiewald stated, only GET and POST requests is normal. Laravel does not change that.
Putting put, patch or delete inside the @method blade directive only injects a _method hidden input inside a form. It's still going to be a GET/POST request at the end of the day. Convenient? Maybe. It's still a hack though.
Still, no named routes suck.
#4
Only 7 of the ~200 Routes are named. The former dev just created URLs within the views with the url() method.
#4.1
There are just GET & POST request. Even though stuff is getting edited or deleted.
😓🔨
rant