18 lines
307 B
Go
18 lines
307 B
Go
//go:build !unembed
|
|
|
|
package router
|
|
|
|
import (
|
|
"github.com/0xJacky/Nginx-UI/internal/middleware"
|
|
"github.com/gin-contrib/static"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func initEmbedRoute(r *gin.Engine) {
|
|
r.Use(
|
|
middleware.CacheJs(),
|
|
middleware.IPWhiteList(),
|
|
static.Serve("/", middleware.MustFs("")),
|
|
)
|
|
}
|