gin
gin copied to clipboard
static How to show only files,not dir.
router.Static("/public", "upload")
I want users to be able to access files only when they exist
example:
/public/aaa/1.png
not show the dir when: /public/aaa
Hi Guy ,You Can Try this
router.StaticFS("/", gin.Dir("public", false))