framework1/app/http/route.go

17 lines
375 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package http
import (
"github.com/Superdanda/hade/app/http/module/demo"
"github.com/Superdanda/hade/framework/gin"
)
func Routes(core *gin.Engine) {
// /路径先去./dist目录下查找文件是否存在找到使用文件服务提供服务
//core.Use(static.Serve("/", static.LocalFile("./dist", false)))
err := demo.Register(core)
if err != nil {
return
}
}