API Endpoints for Verifications and Pending.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-12-30 12:56:11 -05:00
parent 7a41ebb48d
commit 6215426a2d

View File

@ -169,6 +169,8 @@ func getVerifications(w http.ResponseWriter, r *http.Request) {
ver.UserID = strings.Replace(info[0], "verifications/", "", -1) ver.UserID = strings.Replace(info[0], "verifications/", "", -1)
ver.Username = info[1] ver.Username = info[1]
ver.Photo = file ver.Photo = file
fileStat, _ := os.Stat(file)
ver.Closed = fileStat.ModTime()
v = append(v, ver) v = append(v, ver)
} }
verifications, err := json.Marshal(v) verifications, err := json.Marshal(v)