feat(api): add management model definitions endpoint

This commit is contained in:
hkfires
2026-01-27 13:48:57 +08:00
parent ba4a1ab433
commit d18cd217e1
4 changed files with 942 additions and 841 deletions

View File

@@ -607,6 +607,7 @@ func (s *Server) registerManagementRoutes() {
mgmt.GET("/auth-files", s.mgmt.ListAuthFiles)
mgmt.GET("/auth-files/models", s.mgmt.GetAuthFileModels)
mgmt.GET("/model-definitions/:channel", s.mgmt.GetStaticModelDefinitions)
mgmt.GET("/auth-files/download", s.mgmt.DownloadAuthFile)
mgmt.POST("/auth-files", s.mgmt.UploadAuthFile)
mgmt.DELETE("/auth-files", s.mgmt.DeleteAuthFile)