Class: Webhookdb::AdminAPI::V1
- Defined in:
- lib/webhookdb/admin_api.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Service
Service::AUTH_TOKEN_HEADER, Service::AUTH_TOKEN_HTTP, Service::DEFAULT_CORS_ORIGINS, Service::SESSION_COOKIE, Service::SHORT_SESSION_HEADER, Service::SHORT_SESSION_HTTP
Class Method Summary collapse
Methods inherited from Service
build_app, cookie_config, decode_cookie, error_body
Methods included from MethodUtilities
#attr_predicate, #attr_predicate_accessor, #singleton_attr_accessor, #singleton_attr_reader, #singleton_attr_writer, #singleton_method_alias, #singleton_predicate_accessor, #singleton_predicate_reader
Class Method Details
.inherited(subclass) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/webhookdb/admin_api.rb', line 13 def self.inherited(subclass) super subclass.instance_eval do version "v1", using: :path format :json require "webhookdb/service/helpers" helpers Webhookdb::Service::Helpers auth(:admin) before do Sentry.configure_scope do |scope| scope.(application: "admin-api") end end end end |