Updated documentation

This commit is contained in:
Eduard Urbach 2023-07-22 11:55:11 +02:00
parent 8bf1bc8f32
commit 23f5227f6c
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -20,7 +20,7 @@ s := server.New()
http.ListenAndServe(":8080", s)
```
Static route:
Static:
```go
s.Get("/", func(ctx server.Context) error {
@ -28,7 +28,7 @@ s.Get("/", func(ctx server.Context) error {
})
```
Parameter route:
Parameter:
```go
s.Get("/blog/:post", func(ctx server.Context) error {
@ -36,7 +36,7 @@ s.Get("/blog/:post", func(ctx server.Context) error {
})
```
Wildcard route:
Wildcard:
```go
s.Get("/images/*file", func(ctx server.Context) error {