Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

Commit

Permalink
subscriber: update braodcast e2e test http path
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlsh committed May 14, 2021
1 parent b7baf4b commit 4fff22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/broadcast/subscriber/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func (s *Subscriber) Signal() http.Handler {
s.logger.Debug().Msg("registered signal HTTP handler")

if s.config.EnableFrontend {
r.Handle("/", http.FileServer(http.Dir("e2e/broadcast/static"))) // E2e static file server for debuging
s.logger.Debug().Msg("registered broadcast e2e static file server handler")
r.Handle("/v1/test/e2e/broadcast", http.StripPrefix("/v1/test/e2e/broadcast", http.FileServer(http.Dir("e2e/broadcast/static")))) // E2e static file server for debuging
s.logger.Debug().Str("address", "http://localhost:8080/v1/test/e2e/broadcast").Msg("registered broadcast e2e static file server handler")
}
return r
}
Expand Down

0 comments on commit 4fff22b

Please sign in to comment.