From b6a3c6fa03f0a44476b92be9a949be966fcd51df Mon Sep 17 00:00:00 2001 From: ajayk Date: Wed, 3 Feb 2021 23:15:49 -0800 Subject: [PATCH] =?UTF-8?q?=20fix=20path=20for=20photos=20api=20=E2=9E=9C?= =?UTF-8?q?=20=20examples=20git:(photos-api-json)=20=E2=9C=97=20go=20run?= =?UTF-8?q?=20photo.go=20common.go2021-02-03T23:14:52-08:00=20[=E2=9C=BF]?= =?UTF-8?q?=20=20Login=20Success!=20http://localhost:8080/api/v1/photos/\[?= =?UTF-8?q?pqnzsew2k506y94u\]=20{ID:0,DocumentID:pqnzsew2k506y94u,TakenAt:?= =?UTF-8?q?0001-01-01T00:00:00Z,TakenAtLocal:0001-01-01T00:00:00Z,TakenSrc?= =?UTF-8?q?:,UID:,Type:,TypeSrc:,Title:,TitleSrc:,Description:,Description?= =?UTF-8?q?Src:,Path:,Name:,OriginalName:,Stack:0,Favorite:false,Private:f?= =?UTF-8?q?alse,Scan:false,Panorama:false,TimeZone:,PlaceID:,PlaceSrc:,Cel?= =?UTF-8?q?lID:,CellAccuracy:0,Altitude:0,Lat:0,Lng:0,Country:,Year:0,Mont?= =?UTF-8?q?h:0,Day:0,Iso:0,Exposure:,FNumber:0,FocalLength:0,Quality:0,Res?= =?UTF-8?q?olution:0,Color:0,CameraID:0,CameraSerial:,CameraSrc:,LensID:0,?= =?UTF-8?q?CreatedAt:0001-01-01T00:00:00Z,UpdatedAt:0001-01-01T00:00:00Z,E?= =?UTF-8?q?ditedAt:null,CheckedAt:null,DeletedAt:null}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v1/photo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/photo.go b/api/v1/photo.go index 0e85f88..3fbc8a0 100644 --- a/api/v1/photo.go +++ b/api/v1/photo.go @@ -77,7 +77,7 @@ func (v1 *V1Client) GetPhoto(uuid string) (*Photo, error) { if uuid == "" { return nil, fmt.Errorf("missing uuid for GetPhoto [GET /api/v1/photos/:uuid]") } - resp, err := v1.GET("photos/%s", uuid) + resp, err := v1.GET("api/v1/photos/%s", uuid) if err != nil { return nil, fmt.Errorf("unable to get photo uuid=%s with error: %v", uuid, err) }