feat: maintenance mode #739

This commit is contained in:
Jacky 2025-04-07 18:38:04 +08:00
parent 191ddea309
commit 5d3f478086
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
33 changed files with 3698 additions and 2222 deletions

View file

@ -9,9 +9,7 @@ import (
)
func initEmbedRoute(r *gin.Engine) {
r.Use(
middleware.CacheJs(),
middleware.IPWhiteList(),
static.Serve("/", middleware.MustFs("")),
)
r.Use(middleware.CacheJs())
r.GET("/", middleware.IPWhiteList(), static.Serve("/", middleware.MustFs("")))
}