forgot the syntax
This commit is contained in:
parent
5c3c5c1f99
commit
0c70c973f7
@ -76,7 +76,7 @@ func (h *Handlers) ListBucketsHandler(c echo.Context) error {
|
|||||||
return c.JSON(500, map[string]string{"error": "Failed to list buckets"})
|
return c.JSON(500, map[string]string{"error": "Failed to list buckets"})
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.JSON(200, map[string]interface{}{
|
return c.JSON(200, map[string]any{
|
||||||
"buckets": buckets,
|
"buckets": buckets,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ func (h *Handlers) ListObjectsHandler(c echo.Context) error {
|
|||||||
return c.JSON(500, map[string]string{"error": "Failed to list objects"})
|
return c.JSON(500, map[string]string{"error": "Failed to list objects"})
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.JSON(200, map[string]interface{}{
|
return c.JSON(200, map[string]any{
|
||||||
"objects": objects,
|
"objects": objects,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user