└── routes ├── api.php ├── console.php └── web.php /routes/api.php: -------------------------------------------------------------------------------- 1 | name('register'); 12 | 13 | Route::post('/login', 14 | [AuthenticationController::class, 'login'])->name('login'); 15 | 16 | // Product routes 17 | Route::middleware('auth:sanctum')->group(function () { 18 | Route::resource('products', ProductController::class) 19 | ->only(['index', 'store', 'show', 'update', 'destroy']) 20 | ->names([ 21 | 'index' => 'products.index', 22 | 'store' => 'products.store', 23 | 'show' => 'products.show', 24 | 'update' => 'products.update', 25 | 'destroy' => 'products.destroy' 26 | ]); 27 | }); 28 | 29 | 30 | 31 |
-
Notifications
You must be signed in to change notification settings - Fork 0
A lightweight RESTful API for inventory management using Laravel 12 with Sanctum authentication.
Dilan032/Product-Inventory-API
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A lightweight RESTful API for inventory management using Laravel 12 with Sanctum authentication.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published