Skip to content

Commit a80dcbe

Browse files
rkurdukamichaelhtm
authored andcommitted
readfile changes - to read from modelPath
1 parent 6301d3b commit a80dcbe

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

apiv2/readApiV2.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"encoding/json"
55
"errors"
66
"io/ioutil"
7-
"os"
8-
"path/filepath"
97
"strings"
108
"unicode"
119

@@ -53,12 +51,12 @@ func (Obj *ServiceObjV2) CapitaliseName(name *string) string {
5351

5452
}
5553

56-
func ReadV2file(serviceAlias string) (*ServiceObjV2, error) {
54+
func ReadV2file(filepath string) (*ServiceObjV2, error) {
5755

5856
var Obj ServiceObjV2
5957

60-
dir, _ := os.Getwd()
61-
filepath := filepath.Join(dir + "/apiv2/" + serviceAlias + ".json")
58+
// dir, _ := os.Getwd()
59+
// filepath := filepath.Join(dir + "/apiv2/" + serviceAlias + ".json")
6260

6361
file, err := ioutil.ReadFile(filepath)
6462

0 commit comments

Comments
 (0)