(c *stdapi.Context)
| 86 | } |
| 87 | |
| 88 | func (s *Server) AppList(c *stdapi.Context) error { |
| 89 | if err := s.hook("AppListValidate", c); err != nil { |
| 90 | return err |
| 91 | } |
| 92 | |
| 93 | v, err := s.provider(c).WithContext(c.Context()).AppList() |
| 94 | if err != nil { |
| 95 | return err |
| 96 | } |
| 97 | |
| 98 | if vs, ok := interface{}(v).(Sortable); ok { |
| 99 | sort.Slice(v, vs.Less) |
| 100 | } |
| 101 | |
| 102 | return c.RenderJSON(v) |
| 103 | } |
| 104 | |
| 105 | func (s *Server) AppLogs(c *stdapi.Context) error { |
| 106 | if err := s.hook("AppLogsValidate", c); err != nil { |