Serving Static images #874
Unanswered
kheterpala
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a fileserver FileServer(h, "/images", filesDir) that is able to serve static images for some routes like but not all.
h.Route("/screens", func(r chi.Router) {
r.Get("/new", screens.Create())
r.Get("/{screenID}/{reportID}", screens.Show())
})
The route /screens/new displays the image BUT /screens/{{screenID}/{reportID} does not. Any pointers/help will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions