mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
17 lines
307 B
Go
17 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("")),
|
|
)
|
|
}
|