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.
14 lines
245 B
Go
14 lines
245 B
Go
2 years ago
|
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
|
||
|
}
|