I'm using Craft as the backend for an app and VueJS along with Element API to deliver the content.
Everything so far is working sweet, except when I try to pull up the detail page for an entry because in Craft, the route doesn't exist.
To be clear, my main listing page and links work but if I try to visit http://localhost/slug/id
directly, I get a 404.
I know within the context of something like Laravel, I could do
Route::any('{all}', function () {
return view('index');
})
->where(['all' => '.*']);
Is there something similar I could do with Craft?
I should add I have user registration and aspects that vue can't handle because Craft doesn't have a full crud api.