diff options
| author | mo khan <mo@mokhan.ca> | 2014-06-28 08:47:54 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-06-28 08:47:54 -0600 |
| commit | 1587bb47ecff31f5aed1ebe8369ff810ea032888 (patch) | |
| tree | fe52b07f9528e3aa012e9cbdd66f3da718d6df12 /app/views/api | |
| parent | e081f9b2c35e8227c5e99a76e6c5462490feac1a (diff) | |
load up photos in a composite view.
Diffstat (limited to 'app/views/api')
| -rw-r--r-- | app/views/api/v1/photos/_photo.json.jbuilder | 3 | ||||
| -rw-r--r-- | app/views/api/v1/photos/index.json.jbuilder | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/api/v1/photos/_photo.json.jbuilder b/app/views/api/v1/photos/_photo.json.jbuilder index f145b350..98a8c92d 100644 --- a/app/views/api/v1/photos/_photo.json.jbuilder +++ b/app/views/api/v1/photos/_photo.json.jbuilder @@ -2,9 +2,6 @@ json.id photo.id json.cake_id photo.creation_id json.content_type photo.content_type json.original_filename photo.original_filename -json.latitude photo.latitude -json.longitude photo.longitude -json.sha256 photo.sha256 json.thumb_url photo.url_for(:thumb) json.large_url photo.url_for(:large) json.original_url photo.url_for(:original) diff --git a/app/views/api/v1/photos/index.json.jbuilder b/app/views/api/v1/photos/index.json.jbuilder new file mode 100644 index 00000000..e220a35f --- /dev/null +++ b/app/views/api/v1/photos/index.json.jbuilder @@ -0,0 +1,3 @@ +json.array! @photos do |photo| + json.partial! 'photo', photo: photo +end |
