auth middleware basepath tweaks
This commit is contained in:
parent
e9f6a0a1d2
commit
73b7144394
2 changed files with 2 additions and 7 deletions
|
|
@ -23,7 +23,7 @@ func (s *Server) handler() http.Handler {
|
|||
a := &authMiddleware{
|
||||
username: s.Username,
|
||||
password: s.Password,
|
||||
basepath: BasePath,
|
||||
basepath: BasePath + "/",
|
||||
public: BasePath + "/static",
|
||||
}
|
||||
r.Use(a.handler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue