Merge pull request #1 from ajayk/photos-api-json
fix path for photos api
This commit is contained in:
commit
ef275f97f4
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (v1 *V1Client) GetPhoto(uuid string) (*Photo, error) {
|
||||||
if uuid == "" {
|
if uuid == "" {
|
||||||
return nil, fmt.Errorf("missing uuid for GetPhoto [GET /api/v1/photos/: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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("unable to get photo uuid=%s with error: %v", uuid, err)
|
return nil, fmt.Errorf("unable to get photo uuid=%s with error: %v", uuid, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue