You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package routes
|
|
|
|
import (
|
|
"github.com/gin-contrib/static"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func CreateWebRouter(router *gin.Engine) *gin.Engine {
|
|
// 静态文件
|
|
router.Use(static.Serve("/", static.LocalFile("public", false)))
|
|
|
|
return router
|
|
}
|