File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1316,10 +1316,10 @@ And this should return status 200 and as data:
13161316
13171317These 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
13211321You 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
13231323custom endpoints to the existing router and with a callback that implements your own logic.
13241324
13251325Here 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]);
You can’t perform that action at this time.
0 commit comments