Proposal: ServeFiles and BasicAuth
mvasi90 opened this issue · 0 comments
mvasi90 commented
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.