--}}
{{-- --}}
diff --git a/resources/views/website/inc/website-head.blade.php b/resources/views/website/inc/website-head.blade.php
index 6f99ed9..5255cd4 100644
--- a/resources/views/website/inc/website-head.blade.php
+++ b/resources/views/website/inc/website-head.blade.php
@@ -29,3 +29,5 @@
@include($preloader->getBlade())
@endif
+
+
diff --git a/routes/api.php b/routes/api.php
index 9e288ef..9f1d337 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -39,6 +39,6 @@ Route::prefix('v1')->name('v1.')->group(
Route::post('morph/search', [\App\Http\Controllers\Api\MorphController::class, 'search'])->name('morph.search');
Route::post('visitor/display', [\App\Http\Controllers\Api\VisitorController::class, 'display'])->name('visitor.display');
- Route::apiResource('web', \App\Http\Controllers\Api\Web\HomeController::class)->only('index');
- Route::apiResource('products' , \App\Http\Controllers\Api\Web\ProductController::class)->only('index');
+ Route::apiResource('web', \App\Http\Controllers\Api\HomeController::class)->only('index');
+ Route::apiResource('products' , \App\Http\Controllers\Api\ProductController::class)->only('index');
});
diff --git a/routes/web.php b/routes/web.php
index 3807982..2b6cee0 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -366,8 +366,9 @@ Route::name('client.')->group(function (){
Route::get('/gallery/{gallery}', [\App\Http\Controllers\ClientController::class,'gallery'])->name('gallery');
Route::get('/search', [\App\Http\Controllers\ClientController::class,'search'])->name('search');
Route::get('attach/download/{attachment}', [\App\Http\Controllers\ClientController::class,'attachDl'])->name('attach-dl');
- Route::get('/{post}', [\App\Http\Controllers\ClientController::class,'post'])->name('post');
+ Route::get('/post/{post}', [\App\Http\Controllers\ClientController::class,'post'])->name('post');
+ Route::get('product/fav/toggle/{product}', [\App\Http\Controllers\ClientController::class, 'ProductFavToggle'])->name('client.product-fav-toggle');
Route::post('/comment/submit', [\App\Http\Controllers\ClientController::class,'submitComment'])->name('comment.submit');
})->middleware([\App\Http\Middleware\VisitorCounter::class]);
@@ -389,3 +390,9 @@ Route::get('test',function (){
})->name('test');
+Route::get('whoami',function (){
+ if (!auth('customer')->check()){
+ return 'You are nothing';
+ }
+ return \Auth::guard('customer')->user();
+})->name('whoami');