From e13c16a261b71b7e590dda6c9ef826385b7b5b02 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Fri, 25 Sep 2015 19:36:19 +0100 Subject: Made config variable. --- cache.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cache.go') 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 { -- cgit v1.2.1