23 lines
659 B
PHP
23 lines
659 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->patch('/patient/(:num)', 'Patient::update/$1');
|
|
|
|
$routes->get('/patient/race', 'PatientRace::index');
|
|
$routes->get('/patient/country', 'PatientCountry::index');
|
|
$routes->get('/patient/religion', 'PatientReligion::index'); |