Initial commit

This commit is contained in:
Porawit Dongwang
2026-09-16 23:20:08 +07:00
commit 0041668dbb
32577 changed files with 3687927 additions and 0 deletions
@@ -0,0 +1,30 @@
<?php
namespace App\Controllers;
use App\Helpers\Response;
use App\Models\Service;
/**
* Class ServiceController
* Massage Services & Packages REST API Controller
*
* @package App\Controllers
*/
class ServiceController
{
private Service $serviceModel;
public function __construct()
{
$this->serviceModel = new Service();
}
/**
* GET /api/v1/services - Get active services
*/
public function index(): void
{
$branchId = isset($_GET['branch_id']) ? (int)$_GET['branch_id'] : null;
Response::success('รายการบริการและคอร์สนวดแผนไทยทั้งหมด', $this->serviceModel->getActive($branchId));
}
}