@accelerate wrote:
Where is the appropriate place to validate query params? I basically want to check if a query param is valid, and if not, set it to a default value. I had assumed it would be in the Controller's
init()
, but when I look up my params there, all I get is the default values I had set. Is there another lifecycle hook I could use in the Controller, or am I supposed to do it in the accompanying route?
Posts: 3
Participants: 2