fixed new APIcalculator(); in README

This commit is contained in:
Igor Miňo 2025-05-28 17:56:57 +02:00
parent 54ae5e491c
commit a90896ff46

View File

@ -79,6 +79,9 @@ class APIcalculator extends \TPsoft\APIlite\APIlite
return $a / $b;
}
}
new APIcalculator();
```
It is important to extend the `APIcalculator` class with the `\TPsoft\APIlite\APIlite` class, which will provide the entire API servicing according to public methods along with JSON and HTML documentation. The HTML documentation is generated based on the documentation snippet for each method.