fixed new APIcalculator(); in README
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user