fix: Fix ottenimento moduli da endpoint
This commit is contained in:
parent
2873fa67dc
commit
072b55aca6
|
@ -28,8 +28,8 @@ class Controller extends BaseController
|
|||
$osm_modules = collect($module->extra->{'osm-modules'});
|
||||
|
||||
$module->config = $osm_modules
|
||||
->mapWithKeys(fn($item, $name) => config("$name"))
|
||||
->whereNotNull()
|
||||
->mapWithKeys(fn($item, $name) => config($name) ?? include base_path("vendor/$module->name/config/{$name}.php"))
|
||||
->reject(null)
|
||||
->all();
|
||||
|
||||
// Modules (for Frontend)
|
||||
|
@ -38,6 +38,7 @@ class Controller extends BaseController
|
|||
$item->moduleFullName = $module->name;
|
||||
$item->moduleVendor = $split[0];
|
||||
$item->moduleName = $split[1];
|
||||
|
||||
return $item;
|
||||
});
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ class Server extends BaseServer
|
|||
->pluck('config.api.schemas')
|
||||
->reject(null)
|
||||
->push(UserSchema::class)
|
||||
->flatten()
|
||||
->all();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue