Merge pull request #1 from ajayk/photos-api-json

fix path for photos api
main
Kris Nóva 2021-02-06 07:48:41 -08:00 committed by GitHub
commit ef275f97f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}