feat(management): add generic API call handler to management endpoints

This commit is contained in:
Luis Pater
2025-12-28 04:40:32 +08:00
parent 3a436e116a
commit ade7194792
2 changed files with 540 additions and 0 deletions

View File

@@ -500,6 +500,8 @@ func (s *Server) registerManagementRoutes() {
mgmt.PATCH("/proxy-url", s.mgmt.PutProxyURL)
mgmt.DELETE("/proxy-url", s.mgmt.DeleteProxyURL)
mgmt.POST("/api-call", s.mgmt.APICall)
mgmt.GET("/quota-exceeded/switch-project", s.mgmt.GetSwitchProject)
mgmt.PUT("/quota-exceeded/switch-project", s.mgmt.PutSwitchProject)
mgmt.PATCH("/quota-exceeded/switch-project", s.mgmt.PutSwitchProject)