Sha256: edc12d98d25be106fbbec80f2172390e57b1496489ba807448c3f1c2177a3909
Contents?: true
Size: 903 Bytes
Versions: 5
Compression:
Stored size: 903 Bytes
Contents
# frozen_string_literal: true module SlackRubyBotServer module Api module Endpoints class RootEndpoint namespace :slack do format :json before do begin ::Slack::Events::Request.new( request, signing_secret: SlackRubyBotServer::Events.config.signing_secret, signature_expires_in: SlackRubyBotServer::Events.config.signature_expires_in ).verify! rescue ::Slack::Events::Request::TimestampExpired error!('Invalid Signature', 403) end end mount SlackRubyBotServer::Events::Api::Endpoints::Slack::CommandsEndpoint mount SlackRubyBotServer::Events::Api::Endpoints::Slack::ActionsEndpoint mount SlackRubyBotServer::Events::Api::Endpoints::Slack::EventsEndpoint end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems