<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Route::get('{any}', function() {
return view('spa');
})->where('any', '.*');
Route::get('/api/v1/products', function() {
return 'some api handler...';
});
Route::get('{any}', function() {
return view('spa');
})->where('any', '.*');