Commit be3126a4 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) fix Api routing

parent 3965b5f5
......@@ -100,7 +100,7 @@ $di->set('router', function() {
foreach (glob($controller_dir."*", GLOB_ONLYDIR) as $namespace_base) {
foreach (glob($namespace_base."/*", GLOB_ONLYDIR) as $module_base) {
if (strpos($module_base, 'OPNsense/Base') === false) {
foreach (glob($module_base."/*", GLOB_ONLYDIR) as $api_base) {
foreach (glob($module_base."/Api", GLOB_ONLYDIR) as $api_base) {
$namespace_name = str_replace('/', '\\', str_replace($controller_dir, '', $api_base));
$registered_modules[strtolower(basename($module_base))] = $namespace_name;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment