philomena/lib/philomena_web/controllers/api/json
SomewhatDamaged 9b22d2719a Adding /api/v1/json/comment/:id endpoint (#13)
* Add `/api/v1/json/comment/:id` endpoint

* Add controller for `/api/v1/json/comment/:id`

Add controller for `/api/v1/json/comment/:id` endpoint

* Fixes permissions

Now will show `403 forbidden` if a comment on a deleted image is requested.

* Fixed endpoint schema

Now conforms to endpoint schema

* Permission adjustment

Will prevent `user_id` and `author` from leaking in the event the image is `hidden_from_users`

* Permission lockout

Lockout of all data if destroyed.

* Lockout on destroyed_content

Return 404 when `comment.destroyed_content`

* Refactored for neatness
2019-12-31 18:25:11 -05:00
..
search include intensity data in image api response 2019-12-30 09:18:38 -05:00
comment_controller.ex Adding /api/v1/json/comment/:id endpoint (#13) 2019-12-31 18:25:11 -05:00
image_controller.ex add deletion/duplicate handling to api 2019-12-31 00:10:50 -05:00
oembed_controller.ex conn no longer necessary 2019-12-05 17:57:17 -05:00
tag_controller.ex Corrects failure and redirect to main page (#12) 2019-12-31 09:01:14 -05:00