Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes not working with Nova #8

Open
lamalamaMark opened this issue Aug 22, 2018 · 1 comment
Open

Routes not working with Nova #8

lamalamaMark opened this issue Aug 22, 2018 · 1 comment

Comments

@lamalamaMark
Copy link

lamalamaMark commented Aug 22, 2018

When you use the whitelist route in routes/web.php it is not possible to access the API routes created by Nova. These can be excluded by using

Route::get('/{any}', 'SpaController@index')->where('any', '^(?!nova-api).*$');

instead of

Route::get('/{any}', 'SpaController@index')->where('any', '.*');

Added a Pull request: #9

@bcorcoran
Copy link

Just figured this out myself as well.

I am using

Route::get('/{any}', 'SpaController@index')->where('any', '\#*');

Is there any reason to have anything that doesn't start with "#" routed to the controller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants