mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: register auth service
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
|||||||
|
|
||||||
type APIV2Service struct {
|
type APIV2Service struct {
|
||||||
apiv2pb.UnimplementedSystemServiceServer
|
apiv2pb.UnimplementedSystemServiceServer
|
||||||
|
apiv2pb.UnimplementedAuthServiceServer
|
||||||
apiv2pb.UnimplementedUserServiceServer
|
apiv2pb.UnimplementedUserServiceServer
|
||||||
apiv2pb.UnimplementedMemoServiceServer
|
apiv2pb.UnimplementedMemoServiceServer
|
||||||
apiv2pb.UnimplementedResourceServiceServer
|
apiv2pb.UnimplementedResourceServiceServer
|
||||||
@@ -51,6 +52,7 @@ func NewAPIV2Service(secret string, profile *profile.Profile, store *store.Store
|
|||||||
}
|
}
|
||||||
|
|
||||||
apiv2pb.RegisterSystemServiceServer(grpcServer, apiv2Service)
|
apiv2pb.RegisterSystemServiceServer(grpcServer, apiv2Service)
|
||||||
|
apiv2pb.RegisterAuthServiceServer(grpcServer, apiv2Service)
|
||||||
apiv2pb.RegisterUserServiceServer(grpcServer, apiv2Service)
|
apiv2pb.RegisterUserServiceServer(grpcServer, apiv2Service)
|
||||||
apiv2pb.RegisterMemoServiceServer(grpcServer, apiv2Service)
|
apiv2pb.RegisterMemoServiceServer(grpcServer, apiv2Service)
|
||||||
apiv2pb.RegisterTagServiceServer(grpcServer, apiv2Service)
|
apiv2pb.RegisterTagServiceServer(grpcServer, apiv2Service)
|
||||||
@@ -84,6 +86,9 @@ func (s *APIV2Service) RegisterGateway(ctx context.Context, e *echo.Echo) error
|
|||||||
if err := apiv2pb.RegisterSystemServiceHandler(context.Background(), gwMux, conn); err != nil {
|
if err := apiv2pb.RegisterSystemServiceHandler(context.Background(), gwMux, conn); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := apiv2pb.RegisterAuthServiceHandler(context.Background(), gwMux, conn); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if err := apiv2pb.RegisterUserServiceHandler(context.Background(), gwMux, conn); err != nil {
|
if err := apiv2pb.RegisterUserServiceHandler(context.Background(), gwMux, conn); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user