Skip to content

Commit

Permalink
feat: export RegisterHandlers (vesoft-inc#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxiabuluo authored and veeding committed Jun 14, 2022
1 parent ca56f2f commit 57679ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server-v2/api/studio/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package server

import (
"github.com/vesoft-inc/nebula-studio/server-v2/api/studio/internal/config"
"github.com/vesoft-inc/nebula-studio/server-v2/api/studio/internal/handler"
"github.com/vesoft-inc/nebula-studio/server-v2/api/studio/internal/service/importer"
"github.com/vesoft-inc/nebula-studio/server-v2/api/studio/internal/svc"
"github.com/zeromicro/go-zero/rest"
)

type (
Expand All @@ -16,3 +18,7 @@ var NewServiceContext = svc.NewServiceContext
func InitDB(dbFilePath string) {
importer.InitDB(dbFilePath)
}

func RegisterHandlers(server *rest.Server, studioSvcCtx *svc.ServiceContext) {
handler.RegisterHandlers(server, studioSvcCtx)
}

0 comments on commit 57679ca

Please sign in to comment.