[openstreetmap/openstreetmap-website] Add Messages API (PR #4605)
Milan Cvetkovic
notifications at github.com
Mon Jul 29 10:42:28 UTC 2024
@milan-cvetkovic commented on this pull request.
> +# The MessagesController is the RESTful interface to Message objects
+
+module Api
+ class MessagesController < ApiController
+ before_action :authorize
+
+ before_action :check_api_writable, :only => [:create, :update, :destroy]
+ before_action :check_api_readable, :except => [:create, :update, :destroy]
+
+ authorize_resource
+
+ around_action :api_call_handle_error, :api_call_timeout
+
+ before_action :set_request_formats
+
+ skip_authorization_check :only => [:inbox, :outbox]
Fixed.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4605#discussion_r1694998083
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4605/review/2204577013 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240729/e972013d/attachment.htm>
More information about the rails-dev
mailing list