2025-06-26 14:09:25 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use CodeIgniter\Router\RouteCollection;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var RouteCollection $routes
|
|
|
|
|
*/
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', function () {
|
feat(api): transition to headless architecture and enhance order management
This commit marks a significant architectural shift, transitioning the CLQMS backend to a fully headless REST API. All view-related components have been removed to focus solely on providing a robust, stateless API for clinical laboratory workflows.
### Architectural Changes
- **Headless API Transition:**
- Removed all view files (`app/Views/v2`), associated page controllers (`PagesController`), and routes (`Routes.php`). The application no longer serves a front-end UI.
- The root endpoint (`/`) now returns a simple "Backend Running" status message.
- **Developer Tooling & Guidance:**
- Replaced `CLAUDE.md` with `GEMINI.md` to provide updated context and instructional guidelines for Gemini agents.
- Updated `.serena/project.yml` with project configuration.
### Feature Enhancements
- **Advanced Order Management (`OrderTestModel`):**
- **Test Expansion:** The `createOrder` process now automatically expands `GROUP` (panel) tests into their individual components and recursively includes all parameter dependencies for `CALC` (calculated) tests.
- **Order Comments:** Added support for attaching comments to an order via the `ordercom` table.
- **Status Tracking:** Order status updates are now correctly recorded in the `orderstatus` table.
- **Schema Alignment:** Switched from `OrderID` to `InternalOID` as the primary key for internal operations.
- **Reference Range Refactor (`TestsController`):**
- Simplified reference range logic by consolidating `refthold` and `refvset` into the main `refnum` and `reftxt` tables.
- Standardized `RefType` handling to support `NMRC`, `TEXT`, `THOLD`, and `VSET` codes from the `reference_type` ValueSet.
### Other Changes
- **Documentation:**
- `PRD.md`, `README.md`, and `TODO.md` were updated to reflect the headless architecture, refined scope, and current project priorities.
- **Database:**
- Removed obsolete `RefTHoldID` and `RefVSetID` columns from the `patres` table migration.
- **Testing:**
- Added new feature tests for `ContactController`, `OrganizationController`, and `TestsController`.
2026-01-31 09:27:32 +07:00
|
|
|
return "Backend Running";
|
2025-12-30 14:30:35 +07:00
|
|
|
});
|
|
|
|
|
|
2025-12-30 08:48:13 +07:00
|
|
|
$routes->options('(:any)', function () {
|
|
|
|
|
return '';
|
2025-12-29 16:57:46 +07:00
|
|
|
});
|
|
|
|
|
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->group('api', ['filter' => 'auth'], function ($routes) {
|
|
|
|
|
$routes->get('dashboard', 'DashboardController::index');
|
|
|
|
|
$routes->get('result', 'ResultController::index');
|
|
|
|
|
$routes->get('sample', 'SampleController::index');
|
2025-09-04 09:42:30 +07:00
|
|
|
});
|
|
|
|
|
|
feat(api): transition to headless architecture and enhance order management
This commit marks a significant architectural shift, transitioning the CLQMS backend to a fully headless REST API. All view-related components have been removed to focus solely on providing a robust, stateless API for clinical laboratory workflows.
### Architectural Changes
- **Headless API Transition:**
- Removed all view files (`app/Views/v2`), associated page controllers (`PagesController`), and routes (`Routes.php`). The application no longer serves a front-end UI.
- The root endpoint (`/`) now returns a simple "Backend Running" status message.
- **Developer Tooling & Guidance:**
- Replaced `CLAUDE.md` with `GEMINI.md` to provide updated context and instructional guidelines for Gemini agents.
- Updated `.serena/project.yml` with project configuration.
### Feature Enhancements
- **Advanced Order Management (`OrderTestModel`):**
- **Test Expansion:** The `createOrder` process now automatically expands `GROUP` (panel) tests into their individual components and recursively includes all parameter dependencies for `CALC` (calculated) tests.
- **Order Comments:** Added support for attaching comments to an order via the `ordercom` table.
- **Status Tracking:** Order status updates are now correctly recorded in the `orderstatus` table.
- **Schema Alignment:** Switched from `OrderID` to `InternalOID` as the primary key for internal operations.
- **Reference Range Refactor (`TestsController`):**
- Simplified reference range logic by consolidating `refthold` and `refvset` into the main `refnum` and `reftxt` tables.
- Standardized `RefType` handling to support `NMRC`, `TEXT`, `THOLD`, and `VSET` codes from the `reference_type` ValueSet.
### Other Changes
- **Documentation:**
- `PRD.md`, `README.md`, and `TODO.md` were updated to reflect the headless architecture, refined scope, and current project priorities.
- **Database:**
- Removed obsolete `RefTHoldID` and `RefVSetID` columns from the `patres` table migration.
- **Testing:**
- Added new feature tests for `ContactController`, `OrganizationController`, and `TestsController`.
2026-01-31 09:27:32 +07:00
|
|
|
|
2025-12-30 08:48:13 +07:00
|
|
|
|
2026-01-28 17:31:00 +07:00
|
|
|
// Swagger API Documentation (public - no filters)
|
|
|
|
|
$routes->add('swagger', 'PagesController::swagger');
|
|
|
|
|
|
2025-12-30 14:30:35 +07:00
|
|
|
// V2 Auth API Routes (public - no auth required)
|
|
|
|
|
$routes->group('v2/auth', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->post('login', 'AuthV2Controller::login');
|
|
|
|
|
$routes->post('register', 'AuthV2Controller::register');
|
|
|
|
|
$routes->get('check', 'AuthV2Controller::checkAuth');
|
|
|
|
|
$routes->post('logout', 'AuthV2Controller::logout');
|
2025-12-30 14:30:35 +07:00
|
|
|
});
|
|
|
|
|
|
2026-01-05 16:55:34 +07:00
|
|
|
|
2025-11-10 16:02:52 +07:00
|
|
|
|
2025-12-30 08:48:13 +07:00
|
|
|
// Faker
|
|
|
|
|
$routes->get('faker/faker-patient/(:num)', 'faker\FakerPatient::sendMany/$1');
|
|
|
|
|
|
|
|
|
|
$routes->group('api', function ($routes) {
|
|
|
|
|
// Auth
|
|
|
|
|
$routes->group('auth', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->post('login', 'AuthController::login');
|
|
|
|
|
$routes->post('change_pass', 'AuthController::change_pass');
|
|
|
|
|
$routes->post('register', 'AuthController::register');
|
|
|
|
|
$routes->get('check', 'AuthController::checkAuth');
|
|
|
|
|
$routes->post('logout', 'AuthController::logout');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Patient
|
|
|
|
|
$routes->group('patient', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Patient\PatientController::index');
|
|
|
|
|
$routes->post('/', 'Patient\PatientController::create');
|
|
|
|
|
$routes->get('(:num)', 'Patient\PatientController::show/$1');
|
|
|
|
|
$routes->delete('/', 'Patient\PatientController::delete');
|
|
|
|
|
$routes->patch('/', 'Patient\PatientController::update');
|
|
|
|
|
$routes->get('check', 'Patient\PatientController::patientCheck');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// PatVisit
|
|
|
|
|
$routes->group('patvisit', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'PatVisitController::index');
|
|
|
|
|
$routes->post('/', 'PatVisitController::create');
|
|
|
|
|
$routes->get('patient/(:num)', 'PatVisitController::showByPatient/$1');
|
|
|
|
|
$routes->get('(:any)', 'PatVisitController::show/$1');
|
|
|
|
|
$routes->delete('/', 'PatVisitController::delete');
|
|
|
|
|
$routes->patch('/', 'PatVisitController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
2026-02-15 21:05:25 +07:00
|
|
|
$routes->group('patvisitadt', function ($routes) {
|
|
|
|
|
$routes->get('visit/(:num)', 'PatVisitController::getADTByVisit/$1');
|
|
|
|
|
$routes->get('(:num)', 'PatVisitController::showADT/$1');
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->post('/', 'PatVisitController::createADT');
|
|
|
|
|
$routes->patch('/', 'PatVisitController::updateADT');
|
2026-02-15 21:05:25 +07:00
|
|
|
$routes->delete('/', 'PatVisitController::deleteADT');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Master Data
|
|
|
|
|
|
|
|
|
|
// Location
|
|
|
|
|
$routes->group('location', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'LocationController::index');
|
|
|
|
|
$routes->get('(:num)', 'LocationController::show/$1');
|
|
|
|
|
$routes->post('/', 'LocationController::create');
|
|
|
|
|
$routes->patch('/', 'LocationController::update');
|
|
|
|
|
$routes->delete('/', 'LocationController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Contact
|
|
|
|
|
$routes->group('contact', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Contact\ContactController::index');
|
|
|
|
|
$routes->get('(:num)', 'Contact\ContactController::show/$1');
|
|
|
|
|
$routes->post('/', 'Contact\ContactController::create');
|
|
|
|
|
$routes->patch('/', 'Contact\ContactController::update');
|
|
|
|
|
$routes->delete('/', 'Contact\ContactController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$routes->group('occupation', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Contact\OccupationController::index');
|
|
|
|
|
$routes->get('(:num)', 'Contact\OccupationController::show/$1');
|
|
|
|
|
$routes->post('/', 'Contact\OccupationController::create');
|
|
|
|
|
$routes->patch('/', 'Contact\OccupationController::update');
|
|
|
|
|
//$routes->delete('/', 'Contact\OccupationController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$routes->group('medicalspecialty', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Contact\MedicalSpecialtyController::index');
|
|
|
|
|
$routes->get('(:num)', 'Contact\MedicalSpecialtyController::show/$1');
|
|
|
|
|
$routes->post('/', 'Contact\MedicalSpecialtyController::create');
|
|
|
|
|
$routes->patch('/', 'Contact\MedicalSpecialtyController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
2026-02-10 10:05:44 +07:00
|
|
|
// Lib ValueSet (file-based)
|
2025-12-30 08:48:13 +07:00
|
|
|
$routes->group('valueset', function ($routes) {
|
2026-01-13 16:48:43 +07:00
|
|
|
$routes->get('/', 'ValueSetController::index');
|
|
|
|
|
$routes->get('(:any)', 'ValueSetController::index/$1');
|
|
|
|
|
$routes->post('refresh', 'ValueSetController::refresh');
|
2025-12-30 08:48:13 +07:00
|
|
|
|
2026-02-10 10:05:44 +07:00
|
|
|
// User ValueSet (database-based)
|
|
|
|
|
$routes->group('user', function ($routes) {
|
|
|
|
|
$routes->group('items', function ($routes) {
|
|
|
|
|
$routes->get('/', 'ValueSetController::items');
|
|
|
|
|
$routes->get('(:num)', 'ValueSetController::showItem/$1');
|
|
|
|
|
$routes->post('/', 'ValueSetController::createItem');
|
|
|
|
|
$routes->put('(:num)', 'ValueSetController::updateItem/$1');
|
|
|
|
|
$routes->delete('(:num)', 'ValueSetController::deleteItem/$1');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$routes->group('def', function ($routes) {
|
|
|
|
|
$routes->get('/', 'ValueSetDefController::index');
|
|
|
|
|
$routes->get('(:num)', 'ValueSetDefController::show/$1');
|
|
|
|
|
$routes->post('/', 'ValueSetDefController::create');
|
|
|
|
|
$routes->put('(:num)', 'ValueSetDefController::update/$1');
|
|
|
|
|
$routes->delete('(:num)', 'ValueSetDefController::delete/$1');
|
|
|
|
|
});
|
|
|
|
|
});
|
2026-01-12 16:53:41 +07:00
|
|
|
});
|
|
|
|
|
|
2026-02-10 10:05:44 +07:00
|
|
|
// Result ValueSet
|
2026-01-14 16:45:58 +07:00
|
|
|
$routes->group('result', function ($routes) {
|
|
|
|
|
$routes->group('valueset', function ($routes) {
|
|
|
|
|
$routes->get('/', 'Result\ResultValueSetController::index');
|
|
|
|
|
$routes->get('(:num)', 'Result\ResultValueSetController::show/$1');
|
|
|
|
|
$routes->post('/', 'Result\ResultValueSetController::create');
|
|
|
|
|
$routes->put('(:num)', 'Result\ResultValueSetController::update/$1');
|
|
|
|
|
$routes->delete('(:num)', 'Result\ResultValueSetController::delete/$1');
|
|
|
|
|
});
|
2026-01-12 16:53:41 +07:00
|
|
|
});
|
|
|
|
|
|
2025-12-30 08:48:13 +07:00
|
|
|
// Counter
|
|
|
|
|
$routes->group('counter', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'CounterController::index');
|
|
|
|
|
$routes->get('(:num)', 'CounterController::show/$1');
|
|
|
|
|
$routes->post('/', 'CounterController::create');
|
|
|
|
|
$routes->patch('/', 'CounterController::update');
|
|
|
|
|
$routes->delete('/', 'CounterController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// AreaGeo
|
|
|
|
|
$routes->group('areageo', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'AreaGeoController::index');
|
|
|
|
|
$routes->get('provinces', 'AreaGeoController::getProvinces');
|
|
|
|
|
$routes->get('cities', 'AreaGeoController::getCities');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Organization
|
|
|
|
|
$routes->group('organization', function ($routes) {
|
|
|
|
|
// Account
|
|
|
|
|
$routes->group('account', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Organization\AccountController::index');
|
|
|
|
|
$routes->get('(:num)', 'Organization\AccountController::show/$1');
|
|
|
|
|
$routes->post('/', 'Organization\AccountController::create');
|
|
|
|
|
$routes->patch('/', 'Organization\AccountController::update');
|
|
|
|
|
$routes->delete('/', 'Organization\AccountController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Site
|
|
|
|
|
$routes->group('site', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Organization\SiteController::index');
|
|
|
|
|
$routes->get('(:num)', 'Organization\SiteController::show/$1');
|
|
|
|
|
$routes->post('/', 'Organization\SiteController::create');
|
|
|
|
|
$routes->patch('/', 'Organization\SiteController::update');
|
|
|
|
|
$routes->delete('/', 'Organization\SiteController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Discipline
|
|
|
|
|
$routes->group('discipline', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Organization\DisciplineController::index');
|
|
|
|
|
$routes->get('(:num)', 'Organization\DisciplineController::show/$1');
|
|
|
|
|
$routes->post('/', 'Organization\DisciplineController::create');
|
|
|
|
|
$routes->patch('/', 'Organization\DisciplineController::update');
|
|
|
|
|
$routes->delete('/', 'Organization\DisciplineController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Department
|
|
|
|
|
$routes->group('department', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Organization\DepartmentController::index');
|
|
|
|
|
$routes->get('(:num)', 'Organization\DepartmentController::show/$1');
|
|
|
|
|
$routes->post('/', 'Organization\DepartmentController::create');
|
|
|
|
|
$routes->patch('/', 'Organization\DepartmentController::update');
|
|
|
|
|
$routes->delete('/', 'Organization\DepartmentController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Workstation
|
|
|
|
|
$routes->group('workstation', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Organization\WorkstationController::index');
|
|
|
|
|
$routes->get('(:num)', 'Organization\WorkstationController::show/$1');
|
|
|
|
|
$routes->post('/', 'Organization\WorkstationController::create');
|
|
|
|
|
$routes->patch('/', 'Organization\WorkstationController::update');
|
|
|
|
|
$routes->delete('/', 'Organization\WorkstationController::delete');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Specimen
|
|
|
|
|
$routes->group('specimen', function ($routes) {
|
2026-01-07 16:55:25 +07:00
|
|
|
// Container aliases - 'container' and 'containerdef' both point to ContainerDefController
|
|
|
|
|
$routes->group('container', function ($routes) {
|
|
|
|
|
$routes->get('/', 'Specimen\ContainerDefController::index');
|
|
|
|
|
$routes->get('(:num)', 'Specimen\ContainerDefController::show/$1');
|
|
|
|
|
$routes->post('/', 'Specimen\ContainerDefController::create');
|
|
|
|
|
$routes->patch('/', 'Specimen\ContainerDefController::update');
|
|
|
|
|
});
|
2025-12-30 08:48:13 +07:00
|
|
|
$routes->group('containerdef', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Specimen\ContainerDefController::index');
|
|
|
|
|
$routes->get('(:num)', 'Specimen\ContainerDefController::show/$1');
|
|
|
|
|
$routes->post('/', 'Specimen\ContainerDefController::create');
|
|
|
|
|
$routes->patch('/', 'Specimen\ContainerDefController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$routes->group('prep', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Specimen\SpecimenPrepController::index');
|
|
|
|
|
$routes->get('(:num)', 'Specimen\SpecimenPrepController::show/$1');
|
|
|
|
|
$routes->post('/', 'Specimen\SpecimenPrepController::create');
|
|
|
|
|
$routes->patch('/', 'Specimen\SpecimenPrepController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$routes->group('status', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Specimen\SpecimenStatusController::index');
|
|
|
|
|
$routes->get('(:num)', 'Specimen\SpecimenStatusController::show/$1');
|
|
|
|
|
$routes->post('/', 'Specimen\SpecimenStatusController::create');
|
|
|
|
|
$routes->patch('/', 'Specimen\SpecimenStatusController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$routes->group('collection', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Specimen\SpecimenCollectionController::index');
|
|
|
|
|
$routes->get('(:num)', 'Specimen\SpecimenCollectionController::show/$1');
|
|
|
|
|
$routes->post('/', 'Specimen\SpecimenCollectionController::create');
|
|
|
|
|
$routes->patch('/', 'Specimen\SpecimenCollectionController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'Specimen\SpecimenController::index');
|
|
|
|
|
$routes->get('(:num)', 'Specimen\SpecimenController::show/$1');
|
|
|
|
|
$routes->post('/', 'Specimen\SpecimenController::create');
|
|
|
|
|
$routes->patch('/', 'Specimen\SpecimenController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Tests
|
|
|
|
|
$routes->group('tests', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->get('/', 'TestsController::index');
|
|
|
|
|
$routes->get('(:num)', 'TestsController::show/$1');
|
|
|
|
|
$routes->post('/', 'TestsController::create');
|
|
|
|
|
$routes->patch('/', 'TestsController::update');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
|
|
|
|
|
2026-01-12 16:53:41 +07:00
|
|
|
// Orders
|
|
|
|
|
$routes->group('ordertest', function ($routes) {
|
|
|
|
|
$routes->get('/', 'OrderTestController::index');
|
|
|
|
|
$routes->get('(:any)', 'OrderTestController::show/$1');
|
|
|
|
|
$routes->post('/', 'OrderTestController::create');
|
|
|
|
|
$routes->patch('/', 'OrderTestController::update');
|
|
|
|
|
$routes->delete('/', 'OrderTestController::delete');
|
|
|
|
|
$routes->post('status', 'OrderTestController::updateStatus');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Demo/Test Routes (No Auth)
|
|
|
|
|
$routes->group('api/demo', function ($routes) {
|
|
|
|
|
$routes->post('order', 'Test\DemoOrderController::createDemoOrder');
|
|
|
|
|
$routes->get('orders', 'Test\DemoOrderController::listDemoOrders');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Edge API - Integration with tiny-edge
|
2025-12-30 08:48:13 +07:00
|
|
|
$routes->group('edge', function ($routes) {
|
2026-01-05 16:55:34 +07:00
|
|
|
$routes->post('results', 'EdgeController::results');
|
|
|
|
|
$routes->get('orders', 'EdgeController::orders');
|
|
|
|
|
$routes->post('orders/(:num)/ack', 'EdgeController::ack/$1');
|
|
|
|
|
$routes->post('status', 'EdgeController::status');
|
2025-12-30 08:48:13 +07:00
|
|
|
});
|
2025-12-29 16:57:46 +07:00
|
|
|
});
|
|
|
|
|
|
2025-10-23 09:41:49 +07:00
|
|
|
// Khusus
|
2025-12-01 16:47:52 +07:00
|
|
|
/*
|
2025-10-22 13:40:27 +07:00
|
|
|
$routes->get('/api/zones', 'Zones::index');
|
2025-10-23 09:41:49 +07:00
|
|
|
$routes->get('/api/zones/synchronize', 'Zones::synchronize');
|
|
|
|
|
$routes->get('/api/zones/provinces', 'Zones::getProvinces');
|
2025-12-01 16:47:52 +07:00
|
|
|
$routes->get('/api/zones/cities', 'Zones::getCities');
|
2025-12-22 16:54:19 +07:00
|
|
|
*/
|
2025-12-30 08:48:13 +07:00
|
|
|
|