options('(:any)', function() { return ''; }); $routes->get('/', 'Home::index'); // Faker $routes->get('faker/faker-patient/(:num)', 'faker\FakerPatient::sendMany/$1'); $routes->group('api', ['filter' => 'auth'], function($routes) { $routes->get('dashboard', 'Dashboard::index'); $routes->get('result', 'Result::index'); $routes->get('sample', 'Sample::index'); }); $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'); $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'); //$routes->get('/api/patvisit', 'Patient::index'); $routes->post('/api/patvisit', 'PatVisit::create'); $routes->get('/api/patvisit/(:num)', 'PatVisit::show/$1'); $routes->get('/api/patvisit/patient/(:num)', 'PatVisit::showByPatient/$1'); $routes->delete('/api/patvisit', 'PatVisit::delete'); $routes->patch('/api/patvisit', 'PatVisit::update'); $routes->get('/api/race', 'Race::index'); $routes->get('/api/race/(:num)', 'Race::show/$1'); $routes->get('/api/country', 'Country::index'); $routes->get('/api/country/(:num)', 'Country::show/$1'); $routes->get('/api/religion', 'Religion::index'); $routes->get('/api/religion/(:num)', 'Religion::show/$1'); $routes->get('/api/ethnic', 'Ethnic::index'); $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', 'Location::delete'); $routes->get('/api/contact', 'Contact::index'); $routes->get('/api/contact/(:num)', 'Contact::show/$1'); $routes->post('/api/contact', 'Contact::save'); $routes->patch('/api/contact', 'Contact::save'); $routes->delete('/api/contact', 'Contact::delete'); $routes->get('/api/occupation', 'Occupation::index'); $routes->get('/api/occupation/(:num)', 'Occupation::show/$1'); $routes->post('/api/occupation', 'Occupation::create'); $routes->patch('/api/occupation', 'Occupation::update'); //$routes->delete('/api/occupation', 'Occupation::delete'); $routes->get('/api/valueset', 'ValueSet::index'); $routes->get('/api/valueset/(:num)', 'ValueSet::show/$1'); $routes->get('/api/valueset/valuesetdef/(:num)', 'ValueSet::showByValueSetDef/$1'); $routes->post('/api/valueset', 'ValueSet::create'); $routes->patch('/api/valueset', 'ValueSet::update'); $routes->delete('/api/valueset', 'ValueSet::delete'); $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'); $routes->get('/api/counter/', 'Counter::index'); $routes->get('/api/counter/(:num)', 'Counter::show/$1'); $routes->post('/api/counter', 'Counter::create'); $routes->patch('/api/counter', 'Counter::update'); $routes->delete('/api/counter', 'Counter::delete'); $routes->get('/api/containerdef/', 'Specimen\ContainerDef::index'); $routes->get('/api/containerdef/(:num)', 'Specimen\ContainerDef::show/$1'); $routes->post('/api/containerdef', 'Specimen\ContainerDef::create'); $routes->patch('/api/containerdef', 'Specimen\ContainerDef::update'); $routes->delete('/api/containerdef', 'Specimen\ContainerDef::delete');