#Should the post request and get request need separate controllers?

9 messages · Page 1 of 1 (latest)

honest sequoia
#

What's the best practice here?

slender sigil
#

Most likely, yes.

peak turret
#

Whatever works for you 🙂 There are different philosophies and no single right answer. Personally I use resource controllers for crud operations, and single action controllers for anything non-standard.

slender sigil
#

My answer was mostly based on the fact that it's a rather vague question tbh.
I assumed you meant multiple endpoint methods pointing to the same controller method

severe kettle
#

You'll get better answers if you ask a more specific question.

honest sequoia
slender sigil
honest sequoia