Commit 36712d8e authored by TTS Tran Viet Anh's avatar TTS Tran Viet Anh

Merge branch 'feature/products-and-posts' into 'dev'

fix route SEO friendly

See merge request !4
parents 273ed2bb 2e3d938e
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
Route::controller(HomeController::class)->group(function () { Route::controller(HomeController::class)->group(function () {
Route::get('/', 'index')->name('home'); Route::get('/', 'index')->name('home');
Route::get('/productsAjax', 'getProductsAjax')->name('productsAjax'); Route::get('/productsAjax', 'getProductsAjax')->name('productsAjax');
Route::get('/san_pham/{slug}', 'getProductsByCategory')->name('productByCategory'); Route::get('/san-pham/{slug}', 'getProductsByCategory')->name('productByCategory');
Route::get('/bai_viet/{slug}', 'getPostsByCategory')->name('postByCategory'); Route::get('/bai-viet/{slug}', 'getPostsByCategory')->name('postByCategory');
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment