MCPcopy
hub / github.com/IceWhaleTech/CasaOS / GetFileTest

Method GetFileTest

route/v2/file.go:13–19  ·  view source on GitHub ↗

Path: route/v2/file.go

(ctx echo.Context)

Source from the content-addressed store, hash-verified

11// Path: route/v2/file.go
12
13func (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
21func (c *CasaOS) CheckUploadChunk(ctx echo.Context, params codegen.CheckUploadChunkParams) error {
22 identifier := ctx.QueryParam("identifier")

Callers

nothing calls this directly

Calls 1

RequestMethod · 0.80

Tested by

no test coverage detected