router base

This commit is contained in:
Nazar Kanaev
2021-03-17 15:54:05 +00:00
parent c8bc511e04
commit 9bf7f45354
3 changed files with 59 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ import (
)
func (s *Server) handler() http.Handler {
r := router.NewRouter()
r := router.NewRouter(BasePath)
// TODO: auth, base, security
if s.Username != "" && s.Password != "" {