Skip to content

Commit

Permalink
63. feature: api cart (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrakovich committed Jan 26, 2025
1 parent 8308788 commit 36490b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use App\Facades\Device;
use App\Http\Controllers\Api\AppController;
use App\Http\Controllers\Api\CartController;
use App\Http\Controllers\Api\CatalogController;
use App\Http\Controllers\Api\InfoPageController;
use Illuminate\Http\Request;
Expand All @@ -19,3 +20,8 @@
Route::get('product/{product:slug}', [CatalogController::class, 'show'])->withTrashed()->name('product.show');

Route::get('info-page/{page:slug}', [InfoPageController::class, 'show']);

// Route::prefix('cart')->as('cart.')->group(function () {
// Route::get('/', [CartController::class, 'show'])->name('show');
// Route::post('add', [CartController::class, 'addToCart'])->name('add');
// });

0 comments on commit 36490b9

Please sign in to comment.