mirror of https://github.com/gofiber/fiber.git
Update README.md
parent
acf6d42c9c
commit
54f28039b5
|
@ -208,9 +208,11 @@ func main() {
|
|||
app := fiber.New()
|
||||
|
||||
app.Static("/public")
|
||||
|
||||
app.Get("/demo", func(c *fiber.Ctx) {
|
||||
c.Send("This is a demo!")
|
||||
})
|
||||
|
||||
app.Post("/register", func(c *fiber.Ctx) {
|
||||
c.Send("Welcome!")
|
||||
})
|
||||
|
@ -245,8 +247,7 @@ func main() {
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
### Recover from panic
|
||||
### Recover from `panic`
|
||||
|
||||
```go
|
||||
func main() {
|
||||
|
|
Loading…
Reference in New Issue