mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
readding getCard endpoint
This commit is contained in:
parent
d4227f3558
commit
cb544071ce
@ -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
|
||||||
|
@ -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"),
|
||||||
|
Loading…
Reference in New Issue
Block a user