working commit
This commit is contained in:
+5
-5
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user