18 lines
298 B
Go
18 lines
298 B
Go
|
package v2
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/labstack/echo/v4"
|
||
|
)
|
||
|
|
||
|
// Path: route/v2/file.go
|
||
|
|
||
|
func (s *CasaOS) GetFileTest(ctx echo.Context) error {
|
||
|
|
||
|
//http.ServeFile(w, r, r.URL.Path[1:])
|
||
|
http.ServeFile(ctx.Response().Writer, ctx.Request(), "/DATA/test.img")
|
||
|
|
||
|
return ctx.String(200, "pong")
|
||
|
}
|