[openstreetmap/openstreetmap-website] Add show user block api endpoint (PR #4240)
mmd
notifications at github.com
Sun Sep 10 18:43:07 UTC 2023
@mmd-osm commented on this pull request.
> @@ -0,0 +1,18 @@
+module Api
+ class UserBlocksController < ApiController
+ before_action :check_api_readable
+
+ authorize_resource
+
+ around_action :api_call_handle_error, :api_call_timeout
+ before_action :set_request_formats
+
+ def show
+ raise OSM::APIBadUserInput, "No id was given" unless params[:id]
Maybe make it a bit clearer, which "id" we expect here, like "No user block id was given".
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4240#pullrequestreview-1618897694
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4240/review/1618897694 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230910/3723fa63/attachment.htm>
More information about the rails-dev
mailing list