(c *stdapi.Context)
| 630 | } |
| 631 | |
| 632 | func (s *Server) ObjectExists(c *stdapi.Context) error { |
| 633 | if err := s.hook("ObjectExistsValidate", c); err != nil { |
| 634 | return err |
| 635 | } |
| 636 | |
| 637 | app := c.Var("app") |
| 638 | key := c.Var("key") |
| 639 | |
| 640 | v, err := s.provider(c).WithContext(c.Context()).ObjectExists(app, key) |
| 641 | if err != nil { |
| 642 | return err |
| 643 | } |
| 644 | |
| 645 | if vs, ok := interface{}(v).(Sortable); ok { |
| 646 | sort.Slice(v, vs.Less) |
| 647 | } |
| 648 | |
| 649 | return c.RenderJSON(v) |
| 650 | } |
| 651 | |
| 652 | func (s *Server) ObjectFetch(c *stdapi.Context) error { |
| 653 | if err := s.hook("ObjectFetchValidate", c); err != nil { |
nothing calls this directly
no test coverage detected