clqms-be/app/Config/Routes.php

24 lines
717 B
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
$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');
2025-07-23 11:03:46 +07:00
$routes->delete('/patient/(:any)', 'Patient::delete/$1');
2025-07-18 14:38:32 +07:00
$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');