API Endpoints for Verifications and Pending.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user