Browse Source

API Endpoints for Verifications and Pending.

hkremer/rebranding
Gregory Rudolph 3 years ago
parent
commit
6215426a2d
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      site-api.go

2
site-api.go

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

Loading…
Cancel
Save