readding getCard endpoint

This commit is contained in:
root 2022-10-25 06:09:39 +00:00
parent d4227f3558
commit cb544071ce
2 changed files with 13 additions and 6 deletions

View File

@ -11,7 +11,7 @@ import (
//GetCard retrieves contacts set by account //GetCard retrieves contacts set by account
func GetCard(w http.ResponseWriter, r *http.Request) { func GetCard(w http.ResponseWriter, r *http.Request) {
account, code, err := BearerAppToken(r, false) account, code, err := ParamAgentToken(r, false)
if err != nil { if err != nil {
ErrResponse(w, code, err) ErrResponse(w, code, err)
return return

View File

@ -377,6 +377,13 @@ var endpoints = routes{
ClearCardNotes, ClearCardNotes,
}, },
route{
"GetCard",
strings.ToUpper("Get"),
"/contact/cards/{cardID}",
GetCard,
},
route{ route{
"GetCardDetail", "GetCardDetail",
strings.ToUpper("Get"), strings.ToUpper("Get"),