Created
July 22, 2019 00:21
-
-
Save imjenal/ba0d30df0616a0c457d12b343aa19eb4 to your computer and use it in GitHub Desktop.
handler_swagger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileServer := http.FileServer(http.Dir("./swaggerui/")) | |
router.PathPrefix("/api/").Handler(http.StripPrefix("/api/", fileServer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment