clqms-be/app/Config/Routes.php

68 lines
2.5 KiB
PHP
Raw Normal View History

2025-06-26 14:09:25 +07:00
<?php
use CodeIgniter\Router\RouteCollection;
/**
* @var RouteCollection $routes
*/
$routes->options('(:any)', function() {
return '';
});
2025-07-14 16:45:59 +07:00
$routes->get('/', 'Home::index');
2025-06-26 14:09:25 +07:00
2025-09-03 15:36:55 +07:00
//PUNYA GUS INI TEMP
2025-09-03 09:12:48 +07:00
$routes->get('/api/v1/emr/lab/list-new', 'NUHATEMP::index');
$routes->post('/api/v1/emr/lab/insert', 'NUHATEMP::create');
$routes->post('/api/v1/emr/lab/update-validasi', 'NUHATEMP::update');
$routes->post('/api/v1/emr/lab/detail', 'NUHATEMP::detail');
2025-09-04 09:42:30 +07:00
$routes->group('api', ['filter' => 'auth'], function($routes) {
// $routes->get('coba-auth', 'Auth::coba');
$routes->get('dashboard', 'Dashboard::index');
$routes->get('result', 'Result::index');
$routes->get('sample', 'Sample::index');
2025-09-04 09:42:30 +07:00
});
2025-09-08 13:33:48 +07:00
$routes->post('/api/auth/login', 'Auth::login');
$routes->post('/api/auth/change_pass', 'Auth::change_pass');
$routes->post('/api/auth/register', 'Auth::register');
$routes->get('/api/auth/check', 'Auth::checkAuth');
$routes->post('/api/auth/logout', 'Auth::logout');
2025-08-01 11:37:03 +07:00
$routes->get('/api/patient', 'Patient::index');
$routes->post('/api/patient', 'Patient::create');
$routes->get('/api/patient/(:num)', 'Patient::show/$1');
$routes->delete('/api/patient', 'Patient::delete');
$routes->patch('/api/patient', 'Patient::update');
$routes->get('/api/patient/check', 'Patient::patientCheck');
2025-07-18 14:38:32 +07:00
2025-08-01 11:37:03 +07:00
$routes->get('/api/race', 'Race::index');
$routes->get('/api/race/(:num)', 'Race::show/$1');
2025-08-01 11:37:03 +07:00
$routes->get('/api/country', 'Country::index');
$routes->get('/api/country/(:num)', 'Country::show/$1');
2025-08-01 11:37:03 +07:00
$routes->get('/api/religion', 'Religion::index');
$routes->get('/api/religion/(:num)', 'Religion::show/$1');
$routes->get('/api/ethnic', 'Ethnic::index');
2025-09-11 11:09:04 +07:00
$routes->get('/api/ethnic/(:num)', 'Ethnic::show/$1');
$routes->get('/api/location', 'Location::index');
$routes->get('/api/location/(:num)', 'Location::show/$1');
$routes->post('/api/location', 'Location::create');
$routes->patch('/api/location', 'Location::update');
$routes->delete('/api/location', 'Patient::delete');
2025-09-11 16:40:36 +07:00
2025-09-15 15:45:44 +07:00
$routes->get('/api/valueset', 'ValueSet::index');
$routes->get('/api/valueset/(:num)', 'ValueSet::show/$1');
$routes->post('/api/valueset', 'ValueSet::create');
$routes->patch('/api/valueset', 'ValueSet::update');
$routes->delete('/api/valueset', 'ValueSet::delete');
2025-09-11 16:40:36 +07:00
2025-09-17 16:00:26 +07:00
$routes->get('/api/valuesetdef/', 'ValueSetDef::index');
$routes->get('/api/valuesetdef/(:num)', 'ValueSetDef::show/$1');
$routes->post('/api/valuesetdef', 'ValueSetDef::create');
$routes->patch('/api/valuesetdef', 'ValueSetDef::update');
$routes->delete('/api/valuesetdef', 'ValueSetDef::delete');