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:
Jepp9350
2025-02-18 09:03:06 +01:00
parent 9272342c3a
commit 5af6fc5aa5
9 changed files with 196 additions and 1 deletions
@@ -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