clqms-be/app/Config/Routes.php
2025-07-23 11:36:09 +07:00

24 lines
717 B
PHP

<?php
use CodeIgniter\Router\RouteCollection;
/**
* @var RouteCollection $routes
*/
$routes->options('(:any)', function() {
return '';
});
$routes->get('/', 'Home::index');
$routes->post('/auth/login/', 'Auth::login');
$routes->post('/auth/change_pass/', 'Auth::change_pass');
$routes->post('/auth/register/', 'Auth::register');
$routes->get('/patient', 'Patient::index');
$routes->post('/patient', 'Patient::create');
$routes->delete('/patient/(:any)', 'Patient::delete/$1');
$routes->patch('/patient/(:num)', 'Patient::update/$1');
$routes->get('/patient/race', 'PatientRace::index');
$routes->get('/patient/country', 'PatientCountry::index');
$routes->get('/patient/religion', 'PatientReligion::index');