Code cleanup
This commit is contained in:
parent
137f570aca
commit
8545e098c1
2 changed files with 189 additions and 291 deletions
|
@ -7,10 +7,7 @@ package api
|
|||
// Parameters:
|
||||
// uuid: string PhotoUID as returned by the API
|
||||
func (v1 *V1Client) GetPhoto(uuid string) (Photo, error) {
|
||||
photo := Photo{
|
||||
UUID: uuid,
|
||||
PhotoUID: uuid,
|
||||
}
|
||||
photo := Photo{}
|
||||
err := v1.GET("/api/v1/photos/%s", uuid).JSON(&photo)
|
||||
return photo, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue