godofdream/go-zeroweb

View on GitHub
staticHandler.go

Summary

Maintainability
A
0 mins
Test Coverage
package zeroweb

import "github.com/godofdream/fasthttp"

func (a *Zeroweb) staticHandler(ctx *fasthttp.RequestCtx) {
    ctx.SendFileBytes(ctx.Path())
}