httprouter icon indicating copy to clipboard operation
httprouter copied to clipboard

Proposal: ServeFiles and BasicAuth

Open mvasi90 opened this issue 6 years ago • 0 comments

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.

mvasi90 avatar Dec 14 '19 16:12 mvasi90