🎉 Official v1 Release

This commit is contained in:
Fenny 2020-02-21 22:37:04 -05:00 committed by GitHub
parent 81aeb719e0
commit ea7eb824ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
app.go
View File

@ -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...)