From ea7eb824ae33625b34a7d7f23ba8738ab7b836ad Mon Sep 17 00:00:00 2001 From: Fenny <25108519+Fenny@users.noreply.github.com> Date: Fri, 21 Feb 2020 22:37:04 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20Official=20v1=20Release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app.go b/app.go index dd66dcc0..eda0aebe 100644 --- a/app.go +++ b/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...)