options('(:any)', function() { return ''; }); $routes->get('/', 'Home::index'); //PUNYA GUS INI TEMP $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'); $routes->group('api', ['filter' => 'auth'], function($routes) { $routes->get('coba-auth', 'Auth::coba'); }); $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/(:num)', 'Patient::delete/$1'); $routes->patch('/api/patient/(:num)', 'Patient::update/$1'); $routes->get('/api/patient/check', 'Patient::patientCheck'); $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');