API: Central way to fetch the system rules

This commit is contained in:
Michael 2022-12-03 20:18:19 +00:00
parent 8cb7d4a9bd
commit b6f7d31036
4 changed files with 33 additions and 18 deletions

View file

@ -59,6 +59,6 @@ class Instance extends BaseApi
*/
protected function rawContent(array $request = [])
{
System::jsonExit(new InstanceEntity($this->config, $this->baseUrl, $this->database));
System::jsonExit(new InstanceEntity($this->config, $this->baseUrl, $this->database, System::getRules()));
}
}