@James_Moore A RESTful API shouldn’t return a redirect or a “view”; it should return an appropriate status code and ideally a representation of the newly-created resource.
If you’re creating resources, you should send a 201 Created status, and also include a Location HTTP header that is the URL of where the user can find the newly-created resource. This header’s value is where you want to redirect to.
If you’re using Axios to make AJAX requests, then that would look something like this:
axios.post(url, data).then(response => {
window.location.href = response.headers.location;
});