working commit

This commit is contained in:
2026-02-05 18:03:42 +02:00
parent fcd7d50d75
commit f3d0572bca
5 changed files with 6 additions and 39 deletions
+5 -5
View File
@@ -11,7 +11,7 @@ const zeroContentLength = "0"
func (hand *Handler) FileExists(rctx *router.Context) {
filepath := rctx.GetSubpath("filepath")
filepath, _ := rctx.GetSubpath("filepath")
params := &operator.FileExistsParams{
Filepath: filepath,
}
@@ -33,7 +33,7 @@ func (hand *Handler) FileExists(rctx *router.Context) {
func (hand *Handler) PutFile(rctx *router.Context) {
contentLength := rctx.GetHeader("Content-Length")
contentType := rctx.GetHeader("Content-Type")
filepath := rctx.GetSubpath("filepath")
filepath, _ := rctx.GetSubpath("filepath")
params := &operator.PutFileParams{
Filepath: filepath,
@@ -54,7 +54,7 @@ func (hand *Handler) PutFile(rctx *router.Context) {
func (hand *Handler) GetFile(rctx *router.Context) {
filepath := rctx.GetSubpath("filepath")
filepath, _ := rctx.GetSubpath("filepath")
params := &operator.GetFileParams{
Filepath: filepath,
}
@@ -83,7 +83,7 @@ func (hand *Handler) GetFile(rctx *router.Context) {
func (hand *Handler) DeleteFile(rctx *router.Context) {
filepath := rctx.GetSubpath("filepath")
filepath, _ := rctx.GetSubpath("filepath")
params := &operator.DeleteFileParams{
Filepath: filepath,
}
@@ -98,7 +98,7 @@ func (hand *Handler) DeleteFile(rctx *router.Context) {
func (hand *Handler) ListFiles(rctx *router.Context) {
filepath := rctx.GetSubpath("filepath")
filepath, _ := rctx.GetSubpath("filepath")
params := &operator.ListFilesParams{
Filepath: filepath,
}