From e269341d51593689fc517b88bdfca87877ef6aa0 Mon Sep 17 00:00:00 2001 From: ljw <84855512@qq.com> Date: Tue, 15 Oct 2024 16:11:40 +0800 Subject: [PATCH] add webclient v2 preview --- .gitattributes | 3 ++- .gitignore | 1 + http/router/router.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 4ce87d1..baf9b6e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -resources/web/**/* linguist-vendored \ No newline at end of file +resources/web/**/* linguist-vendored +resources/web2/**/* linguist-vendored \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5472bee..5283680 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ go.sum resources/* !resources/public/upload/.gitignore !resources/web +!resources/web2 !resources/i18n release data \ No newline at end of file diff --git a/http/router/router.go b/http/router/router.go index b105bce..56733d1 100644 --- a/http/router/router.go +++ b/http/router/router.go @@ -17,6 +17,7 @@ func WebInit(g *gin.Engine) { if global.Config.App.WebClient == 1 { g.StaticFS("/webclient", http.Dir(global.Config.Gin.ResourcesPath+"/web")) + g.StaticFS("/webclient2", http.Dir(global.Config.Gin.ResourcesPath+"/web2")) } g.StaticFS("/_admin", http.Dir(global.Config.Gin.ResourcesPath+"/admin")) }