so I am trying to test some routes and controller functions that I have created. The other routes that return views work fine, and I was told by my professor that I could test the routes by just putting a vardump in the controller function they are pointing to.
Now, this doesn't really make sense to me, because the functions never return any view or ui data, they just return JSON responses.
Am I correct that there is no way to test routes like that using vardumps? Just confused here.