[web]
# only support sqlite or postgres
listen = "0.0.0.0:8080"
debug = truepackage apis
import (
"github.com/guestin/kboot-web-echo-starter"
"github.com/guestin/kboot-web-echo-starter/mid"
)
func init() {
web.Router(routeBuilder)
web.DependsOn("db")
}
func routeBuilder(eCtx *echo.Echo) error {
eCtx.GET("/echo", mid.Wrap(Echo))
return nil
}