(c *stdapi.Context)
| 478 | } |
| 479 | |
| 480 | func (s *Server) FilesDelete(c *stdapi.Context) error { |
| 481 | if err := s.hook("FilesDeleteValidate", c); err != nil { |
| 482 | return err |
| 483 | } |
| 484 | |
| 485 | app := c.Var("app") |
| 486 | pid := c.Var("pid") |
| 487 | files := strings.Split(c.Value("files"), ",") |
| 488 | |
| 489 | err := s.provider(c).WithContext(c.Context()).FilesDelete(app, pid, files) |
| 490 | if err != nil { |
| 491 | return err |
| 492 | } |
| 493 | |
| 494 | return c.RenderOK() |
| 495 | } |
| 496 | |
| 497 | func (s *Server) FilesDownload(c *stdapi.Context) error { |
| 498 | if err := s.hook("FilesDownloadValidate", c); err != nil { |
nothing calls this directly
no test coverage detected