新增接口开启调试模式

This commit is contained in:
RockYang
2023-03-28 12:12:41 +08:00
parent 1e8aaff193
commit 95f9dfa9cb
3 changed files with 32 additions and 28 deletions

View File

@@ -95,6 +95,7 @@ func (s *Server) Run(webRoot embed.FS, path string, debug bool) {
engine.POST("api/config/role/set", s.UpdateChatRole)
engine.POST("api/config/proxy/add", s.AddProxy)
engine.POST("api/config/proxy/remove", s.RemoveProxy)
engine.POST("api/config/debug", s.SetDebug)
engine.NoRoute(func(c *gin.Context) {
if c.Request.URL.Path == "/favicon.ico" {