mirror of
https://github.com/v2board/v2board.git
synced 2025-07-06 20:09:08 +08:00
update: api version
This commit is contained in:
18
app/Http/Controllers/V1/Guest/PlanController.php
Executable file
18
app/Http/Controllers/V1/Guest/PlanController.php
Executable file
@ -0,0 +1,18 @@
|
||||
<?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
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user