improve docs

This commit is contained in:
Nicola Murino
2019-10-08 08:20:26 +02:00
parent 3e0558c0e9
commit 60d4a3e1b5
3 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ const (
webUsersPath = "/web/users"
webUserPath = "/web/user"
webConnectionsPath = "/web/connections"
staticFileWebPath = "/static"
webStaticFilesPath = "/static"
)
var (

View File

@@ -108,7 +108,7 @@ func initializeRouter(staticFilesPath string) {
router.Group(func(router chi.Router) {
router.Use(middleware.DefaultCompress)
fileServer(router, staticFileWebPath, http.Dir(staticFilesPath))
fileServer(router, webStaticFilesPath, http.Dir(staticFilesPath))
})
}