mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
🎉 Official v1 Release
This commit is contained in:
parent
81aeb719e0
commit
ea7eb824ae
12
app.go
12
app.go
@ -109,6 +109,18 @@ func New(settings ...*Settings) (app *App) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
// Recover
|
||||
func (app *App) Recover(cb func(*Ctx)) {
|
||||
app.recover = cb
|
||||
}
|
||||
|
||||
// Recover
|
||||
func (grp *Group) Recover(cb func(*Ctx)) {
|
||||
grp.app.recover = cb
|
||||
}
|
||||
|
||||
|
||||
// Static ...
|
||||
func (app *App) Static(args ...string) *App {
|
||||
app.registerStatic("/", args...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user