Skip to content

Commit 4f74294

Browse files
author
Milad Rahimi
committed
update readme
1 parent 7c89add commit 4f74294

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@ use MiladRahimi\PhpRouter\Router;
7676
$router = new Router();
7777

7878
$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();
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();
9595
```
9696

9797
You may want to use your custom http methods so take look at this example:

0 commit comments

Comments
 (0)