|
@@ -63,3 +63,12 @@ Route::prefix('collections')->group(function () {
|
|
|
|
|
|
// Sitemap 路由
|
|
|
Route::get('/sitemap.xml', [SitemapController::class, 'index'])->name('sitemap.index');
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// 产品路由
|
|
|
+Route::prefix('produto')->group(function () {
|
|
|
+ Route::get('/', [ProductController::class, 'index'])->name('products.index');
|
|
|
+ Route::get('/{id}', [ProductController::class, 'detail'])->name('products.detail');
|
|
|
+ Route::get('/categories/{categoryId}', [ProductController::class, 'category'])->name('products.category');
|
|
|
+});
|