Custom route

Hi everyone, i am stuck with a problem which i want to create a custom route just like the ViewRecord one little change is is that i want it to return json response not View and thanks.
Was this page helpful?