aboutsummaryrefslogtreecommitdiff
path: root/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache.go')
-rw-r--r--cache.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cache.go b/cache.go
index 6eed536..820d977 100644
--- a/cache.go
+++ b/cache.go
@@ -4,8 +4,6 @@ import (
"time"
)
-var FileRoot string = "http://localhost:8080/files/"
-
type APICache struct {
Id uint64 `json:"id"`
Latitude float64 `json:"latitude"`
@@ -33,7 +31,7 @@ type PostCache struct {
}
func PathToURI(path string) string {
- return FileRoot + path
+ return config.API.Location + config.API.Files + path
}
func DBToAPI(db DBCache) APICache {