code: func (c *controllerAPI) GetSinks(ctx context.Context, w http.ResponseWriter, req *http.Request) {
  	if strings.Contains(req.Header.Get("Accept"), "text/event-stream") {
  		c.streamSinks(ctx, w, req)
  		return
  	}
  
  	list, err := c.sinkRepo.List()
  	if err != nil {
  		respondWithError(w, err)
  		return
  	}
  
  	httphelper.JSON(w, 200, list)
  }
docs: // List sinks