Path: route/v2/file.go
(ctx echo.Context)
| 11 | // Path: route/v2/file.go |
| 12 | |
| 13 | func (s *CasaOS) GetFileTest(ctx echo.Context) error { |
| 14 | |
| 15 | //http.ServeFile(w, r, r.URL.Path[1:]) |
| 16 | http.ServeFile(ctx.Response().Writer, ctx.Request(), "/DATA/test.img") |
| 17 | |
| 18 | return ctx.String(200, "pong") |
| 19 | } |
| 20 | |
| 21 | func (c *CasaOS) CheckUploadChunk(ctx echo.Context, params codegen.CheckUploadChunkParams) error { |
| 22 | identifier := ctx.QueryParam("identifier") |