mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
- 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.
33 lines
941 B
PHP
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");
|
|
}
|
|
);
|
|
|
|
|