Class no validates to make sure the first parameter in the route isn't API or AJAX.