Skip to content
Snippets Groups Projects
Commit 427059d1 authored by Lucas García's avatar Lucas García
Browse files

feat: settings rest api schema

parent 7cd7cea6
No related branches found
No related tags found
1 merge request!2Git submodules
Subproject commit 90b1d211eccfc4aa41c272b22506563e2662ef3b
Subproject commit 19a63ab49456138f1131e24127020d091a01a267
......@@ -13,12 +13,17 @@ class Settings extends BaseSettings
$this->register_setting(
$setting_name,
[
'base_url' => 'http://example.' . $url['host'],
'base_url' => [
'type' => 'string'
],
'api_key' => [
'type' => 'string'
]
],
[
'base_url' => 'http://' . $url['host'],
'api_key' => 'backend-api-key'
],
);
$this->register_field('base_url', $setting_name);
$this->register_field('api_key', $setting_name);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment