Files
Discount-Bandit/routes/api.php
T
YNWA Fawzy 13e8bda25d - add api services for the plugin implementation
- fix price chart doesn't show labels on hovering
- fixed detach action removes all products in that store
- remove product history if the product is not attached to store anymore.
- fixed problem where prices are multiplied by 100.
- fixed "edit" action breaking Single Product Store View
- fixed shipping price number presentation.
2024-02-04 13:22:07 +04:00

33 lines
941 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});
Route::middleware('auth:sanctum')
->controller(\App\Http\Controllers\ProductController::class)
->name("products.")
->prefix("products/")
->group(
function (){
Route::post("get-product" , "get_product")->name("get-product");
Route::post("create/amazon" , "create_amazon_product")->name("create.amazon");
}
);