add org structure

This commit is contained in:
andrusyakka
2023-07-05 18:44:22 +03:00
parent ac08cceda0
commit 9234b577bb
8 changed files with 57 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ import (
func GetFileFromStore(c echo.Context) error {
fileName := strings.ReplaceAll(c.Request().RequestURI, "/store", "")
data, err, req := api.GetRequest(
data, err, resp := api.GetRequest(
config.Env.MSHosts.StoreHost+fileName,
c.Request().Header,
)
@@ -19,5 +19,5 @@ func GetFileFromStore(c echo.Context) error {
return c.NoContent(http.StatusBadGateway)
}
return c.Blob(req.StatusCode, req.Header.Get("Content-Type"), data)
return c.Blob(resp.StatusCode, resp.Header.Get("Content-Type"), data)
}