Skip to content

Commit

Permalink
enabled grpc reflection on the server
Browse files Browse the repository at this point in the history
Resolves #253
  • Loading branch information
CommanderStorm committed Oct 11, 2023
1 parent c947adc commit d8eaf20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"strings"
"time"

"google.golang.org/grpc/reflection"

"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/TUM-Dev/Campus-Backend/server/env"
Expand Down Expand Up @@ -81,6 +83,7 @@ func main() {
// Main GRPC Server
grpcServer := grpc.NewServer()
pb.RegisterCampusServer(grpcServer, campusService)
reflection.Register(grpcServer)

// GRPC Gateway for HTTP REST -> GRPC
grpcGatewayMux := runtime.NewServeMux(runtime.WithIncomingHeaderMatcher(
Expand Down

0 comments on commit d8eaf20

Please sign in to comment.