|
@@ -75,6 +75,11 @@ Route::prefix('products')->group(function () {
|
|
|
Route::get('/categories/{categoryId}', [ProductController::class, 'category'])->name('products.category');
|
|
|
});
|
|
|
|
|
|
+// 产品分类路由
|
|
|
+Route::get('/categories-{slug}', [ProductController::class, 'category'])
|
|
|
+ ->name('products.category.slug')
|
|
|
+ ->where('slug', '[a-z0-9-]+'); // 限制 slug 格式
|
|
|
+
|
|
|
// 视频路由
|
|
|
Route::prefix('videos')->group(function () {
|
|
|
Route::get('/', [VideoController::class, 'index'])->name('videos.index');
|