Add image cache and use struct for config (closes #58)

This commit is contained in:
video-prize-ranch
2022-09-30 16:57:18 -04:00
parent f1c058cbfc
commit 4306b3bb81
9 changed files with 116 additions and 39 deletions

View File

@@ -36,7 +36,7 @@ func FetchTag(tag string, sort string, page string) (Tag, error) {
}
q := req.URL.Query()
q.Add("client_id", utils.Config["imgurId"].(string))
q.Add("client_id", utils.Config.ImgurId)
q.Add("include", "cover")
q.Add("page", page)