moved static to assets

This commit is contained in:
Michael 2019-06-20 01:39:24 +01:00
parent c941404d7c
commit f1cf65bf54

View File

@ -23,7 +23,7 @@ func File(path string) ([]byte, *HTTPError) {
func Contact() map[string]interface{} {
var contact Contacts
resp, err := File("./json/contacts.json")
resp, err := File("./assets/json/contacts.json")
if err != nil {
m := structs.Map(err)
return m
@ -34,7 +34,7 @@ func Contact() map[string]interface{} {
}
func Header() (headers *Headers, err *HTTPError) {
resp, err := File("./json/headers.json")
resp, err := File("./assets/json/headers.json")
if err != nil {
return
}