httprouter
httprouter copied to clipboard
Proposal: ServeFiles and BasicAuth
Hello,
Please add another function to ServeFiles with BasicAuth
router.ServeFiles("/static/*filepath", http.FileSystem(http.Dir(staticFolder)))
compatible with this:
router.GET("/", BasicAuth(Index, user, pass))
to avoid two different middleware.