chore: configure gin mode

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
tao.chen
2026-07-02 17:46:04 +08:00
co-authored by Claude Fable 5
parent 2bdad13e5c
commit ab4f905725
9 changed files with 610 additions and 4 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func main() {
fileSvc := service.NewFileService(workspaces, cfg.File.MaxWriteBytes)
processSvc := service.NewProcessService(workspaces, processes, lg)
router := api.NewRouter(workspaceSvc, fileSvc, processSvc, lg)
router := api.NewRouter(workspaceSvc, fileSvc, processSvc, lg, cfg.Gin.Mode)
server := &http.Server{
Addr: cfg.Server.Addr,