philomena/lib/philomena_web/controllers/api/json
SomewhatDamaged 8e39c06940 Fix for distance (#16)
* Fix for distance

Fixes the `distance` to search not being passed through to `ImageReverse.images()`

`set_scraper_cache` passes the `distance` through into `params`
`create` normalizes and inserts the result into the params passed to `ImageReverse.images()`
`normalize_dist` checks if there is a `distance` set, adds a leading 0 to it (to account for values like `.5`, which would crash `Float.parse()`), and turns it back into a well-formatted string for `ImageReverse.images()`

* Fixed space
2020-01-03 10:37:20 -05:00
..
search Fix for distance (#16) 2020-01-03 10:37:20 -05:00
comment_controller.ex Adding /api/v1/json/comment/:id endpoint (#13) 2019-12-31 18:25:11 -05:00
forums_controller.ex Add /forums API Endpoints (#14) 2020-01-02 17:47:12 -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
posts_controller.ex apparently that was necessary 2020-01-02 19:00:47 -05:00
tag_controller.ex add parameter recoder to api tag controller 2019-12-31 23:22:35 -05:00
topics_controller.ex Add /forums API Endpoints (#14) 2020-01-02 17:47:12 -05:00