add interceptors to task and competition services
This commit is contained in:
1 parent
c5ec20121b
commit
6fd31915b9
3 files changed
+11
-9
No files matched your search
@@ -69,7 +69,9 @@ func (s *Server) registerGRPCServices() error {
|
||||
authClient := authpb.NewAuthServiceClient(s.authConn)
|
||||
authInterceptor := interceptor.NewAuthInterceptor(authClient)
|
||||
|
||||
s.grpcServer = grpc.NewServer()
|
||||
s.grpcServer = grpc.NewServer(
|
||||
grpc.UnaryInterceptor(authInterceptor.Unary()),
|
||||
)
|
||||
|
||||
taskRepo := taskPostgresRepo.NewTaskRepository(s.db)
|
||||
|
||||
|
||||
Reference in new issue
Block a user