mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
15 lines
310 B
Go
15 lines
310 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())
|
|
|
|
r.GET("/", middleware.IPWhiteList(), static.Serve("/", middleware.MustFs("")))
|
|
}
|