I have an API service built with Go Gin. And I want to have a static folder which have images from uploaded files. I used this code to make a route.
r := gin.Default()
r.StaticFS("/uploads", http.Dir("./static"))
r.Run(":8080")
It worked on my local, but not working on my server side.