generated from VLADIMIR/template
add db filepath
This commit is contained in:
@@ -27,12 +27,13 @@ func main() {
|
||||
// Create a gRPC server object
|
||||
s := grpc.NewServer()
|
||||
// Attach the Greeter service to the server
|
||||
repository, err := services.NewRepository()
|
||||
dbFilepath := config.GetDBFilepath()
|
||||
repository, err := services.NewRepository(dbFilepath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
storyFilepath := config.GetStoryFilePath()
|
||||
storyFilepath := config.GetStoryFilepath()
|
||||
storyService, err := story_service.NewStoryService(storyFilepath)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
|
||||
Reference in New Issue
Block a user