diff options
author | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-09-25 19:36:19 +0100 |
---|---|---|
committer | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-09-25 19:36:19 +0100 |
commit | e13c16a261b71b7e590dda6c9ef826385b7b5b02 (patch) | |
tree | 57a75e5d44362b07da88d44f437983128e52a9ab /cache.go | |
parent | d167a89638b4eecad852c66385737ef89354ec99 (diff) |
Made config variable.
Diffstat (limited to 'cache.go')
-rw-r--r-- | cache.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 { |