initial project
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers\Frontend;
|
||||
|
||||
use App\Controllers\BaseController;
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use CodeIgniter\API\ResponseTrait;
|
||||
use App\Models\TopupSettingModel;
|
||||
|
||||
|
||||
|
||||
class TopupSettingController extends BaseController
|
||||
{
|
||||
use ResponseTrait;
|
||||
private $settings;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->settings = new TopupSettingModel();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$data = $this->settings
|
||||
->orderBy('topup_amount', 'ASC')
|
||||
->findAll();
|
||||
|
||||
return $this->respond([
|
||||
'status' => 200,
|
||||
'data' => $data,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user