Code cleanup

This commit is contained in:
Astra 2023-01-18 00:48:30 +00:00
parent 137f570aca
commit 8545e098c1
2 changed files with 189 additions and 291 deletions

View file

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