Skip to content

Commit e3b7c98

Browse files
committed
fix(server): mount grpcWebMux with StripPrefix to match grpc gateway routes
1 parent 842199b commit e3b7c98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (s *Server) ListenAndServe(
131131
internalMux := chi.NewRouter()
132132

133133
internalMux.Route(pathPrefix+"/", func(r chi.Router) {
134-
r.Mount("/api", grpcWebMux)
134+
r.Mount("/api", http.StripPrefix(pathPrefix+"/api", grpcWebMux))
135135

136136
r.Handle("/metrics", promhttp.HandlerFor(s.reg, promhttp.HandlerOpts{}))
137137

0 commit comments

Comments
 (0)