fix: restore clients page functionality
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

Updated handleGetClients to return UI-compatible data format and implemented handleGetClient/handleUpdateClient endpoints.
This commit is contained in:
2026-03-19 12:06:52 -04:00
parent 0f3c5b6eb4
commit b04b794705
2 changed files with 111 additions and 2 deletions

View File

@@ -111,6 +111,8 @@ func (s *Server) setupRoutes() {
admin.GET("/clients", s.handleGetClients)
admin.POST("/clients", s.handleCreateClient)
admin.GET("/clients/:id", s.handleGetClient)
admin.PUT("/clients/:id", s.handleUpdateClient)
admin.DELETE("/clients/:id", s.handleDeleteClient)
admin.GET("/clients/:id/tokens", s.handleGetClientTokens)