Skip to content

Commit ea7eb82

Browse files
authored
🎉 Official v1 Release
1 parent 81aeb71 commit ea7eb82

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app.go

+12
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ func New(settings ...*Settings) (app *App) {
109109
return
110110
}
111111

112+
113+
// Recover
114+
func (app *App) Recover(cb func(*Ctx)) {
115+
app.recover = cb
116+
}
117+
118+
// Recover
119+
func (grp *Group) Recover(cb func(*Ctx)) {
120+
grp.app.recover = cb
121+
}
122+
123+
112124
// Static ...
113125
func (app *App) Static(args ...string) *App {
114126
app.registerStatic("/", args...)

0 commit comments

Comments
 (0)