Files
dpl/plugins/VipLoyalty/routes/api.php
T
hellcat 0501711267 feat(fuc-xb): prepare isolated staging theme and VIP auto upgrades
Port the Fuc 0.12.0 frontend and default-off VIP plugin. Include the previously approved password-reset token revocation. Deploy only to an independent FUC-XB test instance; no production cutover.
2026-11-04 13:44:33 +08:00

9 lines
470 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use Plugin\VipLoyalty\Controllers\VipController;
Route::middleware('user')->get('/api/v1/user/vip',[VipController::class,'show']);
$secure=admin_setting('secure_path',admin_setting('frontend_admin_path',hash('crc32b',config('app.key'))));
Route::middleware('admin')->prefix('/api/v2/'.$secure.'/vip')->group(function(){
Route::get('/',[VipController::class,'settings']);Route::post('/',[VipController::class,'save']);
});