Skip to content

Commit

Permalink
Update classfile.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei authored Jan 19, 2024
1 parent 91181d3 commit faea65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ func (p App) Delete(path string, handle func(ctx *Context)) {
}

// Static serves static files from a dir (default is "$YapFS/static").
func (p *App) Static__0(pattern string, dir ...fs.FS) {
func (p App) Static__0(pattern string, dir ...fs.FS) {
p.Static(pattern, dir...)
}

// Static serves static files from a http file system.
func (p *App) Static__1(pattern string, fs http.FileSystem) {
func (p App) Static__1(pattern string, fs http.FileSystem) {
p.StaticHttp(pattern, fs)
}

Expand Down

0 comments on commit faea65d

Please sign in to comment.