We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c89add commit 4f74294Copy full SHA for 4f74294
.DS_Store
6 KB
README.md
@@ -76,22 +76,22 @@ use MiladRahimi\PhpRouter\Router;
76
$router = new Router();
77
78
$router
79
- ->get('/', function () {
80
- return '<b>GET method</b>';
81
- });
82
- ->post('/', function () {
83
- return '<b>POST method</b>';
84
85
- ->patch('/', function () {
86
- return '<b>PATCH method</b>';
87
88
- ->put('/', function () {
89
- return '<b>PUT method</b>';
90
91
- ->delete('/', function () {
92
- return '<b>DELETE method</b>';
93
- })
94
- ->dispatch();
+ ->get('/', function () {
+ return '<b>GET method</b>';
+ });
+ ->post('/', function () {
+ return '<b>POST method</b>';
+ ->patch('/', function () {
+ return '<b>PATCH method</b>';
+ ->put('/', function () {
+ return '<b>PUT method</b>';
+ ->delete('/', function () {
+ return '<b>DELETE method</b>';
+ })
+ ->dispatch();
95
```
96
97
You may want to use your custom http methods so take look at this example:
0 commit comments