Update File Custom Cors All Method - perbaikan routes.php

This commit is contained in:
mikael-zakaria 2025-07-16 10:00:02 +07:00
parent 27856b7d54
commit 6cc8ca9224

View File

@ -5,6 +5,9 @@ use CodeIgniter\Router\RouteCollection;
/** /**
* @var RouteCollection $routes * @var RouteCollection $routes
*/ */
$routes->options('(:any)', function() {
return '';
});
$routes->get('/', 'Home::index'); $routes->get('/', 'Home::index');
$routes->post('/auth/login/', 'Auth::login'); $routes->post('/auth/login/', 'Auth::login');