Skip to content

Commit 1b60995

Browse files
authored
Update README.md
1 parent 4fb032e commit 1b60995

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ func main() {
5757
```
5858

5959
### HTTP Methods
60-
You can use the `Map()` method to declare routes. It gets HTTP methods and paths (URIs).
60+
You can use the `Map()` method to declare routes.
61+
It gets HTTP methods and paths (URIs).
6162
There are also some methods available for the most used HTTP methods.
6263
These methods are `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`, and `OPTIONS`.
64+
The `Any()` method defines routes that handles any HTTP method.
6365

6466
```go
6567
package main
@@ -85,9 +87,11 @@ func main() {
8587
r.HEAD("/", Handler)
8688
r.OPTIONS("/", Handler)
8789

90+
r.Any("/page", Handler)
91+
8892
r.Map("GET", "/", Handler)
8993
r.Map("CUSTOM", "/", Handler)
90-
94+
9195
log.Fatalln(r.Start(":8000"))
9296
}
9397
```

0 commit comments

Comments
 (0)