update: remove guest plan api

This commit is contained in:
v2board 2023-10-15 21:52:17 +08:00
parent 3c372bd268
commit 80b96e730a
3 changed files with 1 additions and 21 deletions

View File

@ -1,18 +0,0 @@
<?php
namespace App\Http\Controllers\V1\Guest;
use App\Http\Controllers\Controller;
use App\Models\Plan;
use Illuminate\Http\Request;
class PlanController extends Controller
{
public function fetch(Request $request)
{
$plan = Plan::where('show', 1)->get();
return response([
'data' => $plan
]);
}
}

View File

@ -10,8 +10,6 @@ class GuestRoute
$router->group([ $router->group([
'prefix' => 'guest' 'prefix' => 'guest'
], function ($router) { ], function ($router) {
// Plan
$router->get ('/plan/fetch', 'V1\\Guest\\PlanController@fetch');
// Telegram // Telegram
$router->post('/telegram/webhook', 'V1\\Guest\\TelegramController@webhook'); $router->post('/telegram/webhook', 'V1\\Guest\\TelegramController@webhook');
// Payment // Payment

File diff suppressed because one or more lines are too long