Add MotorAPI module with configuration management
Introduced the MotorAPI module, including its configuration classes, interface, and integration with the router. The configuration supports enabling, managing API tokens, and daily request limits. Added support for fetching and updating MotorAPI settings via new API routes.
This commit is contained in:
@@ -146,7 +146,7 @@ trait module_config_t
|
||||
function parseConfigVariableType($type, $value)
|
||||
{
|
||||
// If the variable is an int, convert it to an int
|
||||
if ($type == 'integer') {
|
||||
if ($type == 'integer' || $type == 'int') {
|
||||
return (integer)$value;
|
||||
}
|
||||
// If the variable is a boolean, convert it to a boolean
|
||||
|
||||
Reference in New Issue
Block a user