(w http.ResponseWriter, r *http.Request)
| 338 | } |
| 339 | |
| 340 | func (s *Server) handleEntities(w http.ResponseWriter, r *http.Request) { |
| 341 | if r.Method != http.MethodGet { |
| 342 | methodNotAllowed(w) |
| 343 | return |
| 344 | } |
| 345 | kind := queryDefault(r, "kind", "skill") |
| 346 | query := r.URL.Query().Get("query") |
| 347 | if query != "" { |
| 348 | entities, err := s.services.Entities.Search(kind, query) |
| 349 | writeResult(w, entities, err) |
| 350 | return |
| 351 | } |
| 352 | entities, err := s.services.Entities.List(kind) |
| 353 | writeResult(w, entities, err) |
| 354 | } |
| 355 | |
| 356 | // handleEntityUninstall removes an entity (skill/agent/plugin) from the |
| 357 | // registry and its installed filesystem locations. |
nothing calls this directly
no test coverage detected