philomena/lib/philomena_web
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
..
channels initial 2019-08-14 20:32:32 -04:00
controllers Adding /api/v1/json/comment/:id endpoint (#13) 2019-12-31 18:25:11 -05:00
plugs ensure the authenticated user is never persisted as a further safeguard against API CSRF 2019-12-24 12:15:30 -05:00
templates update sort fields list 2019-12-31 17:21:06 -05:00
views discard old parser 2019-12-31 14:56:38 -05:00
comment_json.ex Adding /api/v1/json/comment/:id endpoint (#13) 2019-12-31 18:25:11 -05:00
comment_loader.ex Revert "more aggressive preloading" 2019-12-22 22:13:36 -05:00
endpoint.ex samesite session 2019-12-23 19:20:24 -05:00
gallery_json.ex api search controllers 2019-12-24 03:26:06 -05:00
gettext.ex initial 2019-08-14 20:32:32 -04:00
image_json.ex add deletion/duplicate handling to api 2019-12-31 00:10:50 -05:00
image_loader.ex show hidden links on tag page, hidden status on profile page 2019-12-30 18:56:29 -05:00
image_reverse.ex include intensity data in image api response 2019-12-30 09:18:38 -05:00
mailer.ex add mailer, password resets, lockouts 2019-11-14 21:40:35 -05:00
post_json.ex api search controllers 2019-12-24 03:26:06 -05:00
pow_mailer.ex add mailer, password resets, lockouts 2019-11-14 21:40:35 -05:00
router.ex Adding /api/v1/json/comment/:id endpoint (#13) 2019-12-31 18:25:11 -05:00
tag_json.ex api search controllers 2019-12-24 03:26:06 -05:00