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:
1316
1316
1317
1317
These can be used to measure the time (in microseconds) to connect and read data from the database and the cache.
1318
1318
1319
- ## Custom Endpoints with Controller
1319
+ ## Custom controller
1320
1320
1321
1321
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
1323
1323
custom endpoints to the existing router and with a callback that implements your own logic.
1324
1324
1325
1325
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
1346
1346
1347
1347
```
1348
1348
$config = new Config([
1349
+ ...
1349
1350
'customControllers' => 'MyHelloController',
1350
1351
...
1351
1352
]);
You can’t perform that action at this time.
0 commit comments