aboutsummaryrefslogtreecommitdiff
path: root/cache.go
diff options
context:
space:
mode:
authorNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2015-09-25 19:36:19 +0100
committerNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2015-09-25 19:36:19 +0100
commite13c16a261b71b7e590dda6c9ef826385b7b5b02 (patch)
tree57a75e5d44362b07da88d44f437983128e52a9ab /cache.go
parentd167a89638b4eecad852c66385737ef89354ec99 (diff)
Made config variable.
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 {