Skip to content

Commit

Permalink
fix: Public folder location absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
konotorii committed Jun 11, 2024
1 parent 323ebbd commit b56d888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
go.work
.env

/public
/public
docker-compose.yml
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func getServeImage(c *gin.Context, rdb *redis.Client, ctx context.Context) {

filePath = replacer.Replace(filePath)

filePath = "./public/" + filePath
filePath = "/public/" + filePath

result, err := rdb.Get(ctx, filePath).Result()
if err != nil {
Expand Down

0 comments on commit b56d888

Please sign in to comment.