Skip to content

Commit 709f02a

Browse files
authored
Update README.md
1 parent 3293daa commit 709f02a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,10 +1316,10 @@ And this should return status 200 and as data:
13161316

13171317
These can be used to measure the time (in microseconds) to connect and read data from the database and the cache.
13181318

1319-
## Custom Endpoints with Controller
1319+
## Custom controller
13201320

13211321
You can add your own custom REST API endpoints by writing your own custom controller class.
1322-
The class must provide a constructor that accepts three parameters. These parameters will allow you to register
1322+
The class must provide a constructor that accepts five parameters. These parameters will allow you to register
13231323
custom endpoints to the existing router and with a callback that implements your own logic.
13241324

13251325
Here is an example of a custom controller class:
@@ -1346,6 +1346,7 @@ And then you may register your custom controller class in the config object like
13461346

13471347
```
13481348
$config = new Config([
1349+
...
13491350
'customControllers' => 'MyHelloController',
13501351
...
13511352
]);

0 commit comments

Comments
 (0)