From b687487aff74d77fd5d5cd8cb065c57a89049b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 22 Oct 2025 13:48:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20se?= =?UTF-8?q?cretWEbPath=20=D0=B2=20UI=20=D0=B8=20model.Server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/model/model.go | 1 + web/html/servers.html | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/database/model/model.go b/database/model/model.go index b47be686..91f8c1df 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -125,6 +125,7 @@ type Server struct { Name string `json:"name" gorm:"unique;not null" form:"name"` Address string `json:"address" gorm:"not null" form:"address"` Port int `json:"port" gorm:"not null" form:"port"` + SecretWebPath string `json:"secretWebPath" gorm:"not null" form:"secretWebPath"` APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"` Enable bool `json:"enable" gorm:"default:true" form:"enable"` } diff --git a/web/html/servers.html b/web/html/servers.html index 733102a9..c95d93be 100644 --- a/web/html/servers.html +++ b/web/html/servers.html @@ -100,6 +100,12 @@ + +
+ + +
@@ -158,6 +164,7 @@ name: "", address: "", port: 0, + secretWebPath: "", apiKey: "", enable: true, }, @@ -183,6 +190,7 @@ name: "", address: "", port: 0, + secretWebPath: "", apiKey: "", enable: true, };