2019-05-12 22:37:49 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-13 08:32:11 -04:00
|
|
|
Discourse::Application.routes.append do
|
2021-07-13 15:36:16 -04:00
|
|
|
mount ::DiscourseChatIntegration::AdminEngine, at: '/admin/plugins/chat', constraints: AdminConstraint.new
|
|
|
|
mount ::DiscourseChatIntegration::PublicEngine, at: '/chat-transcript/', as: 'chat-transcript'
|
|
|
|
mount ::DiscourseChatIntegration::Provider::HookEngine, at: '/chat-integration/'
|
2017-10-10 01:30:44 -04:00
|
|
|
|
|
|
|
# For backwards compatibility with Slack plugin
|
2021-07-13 15:36:16 -04:00
|
|
|
post "/slack/command" => "discourse_chat_integration/provider/slack_provider/slack_command#command"
|
2017-08-01 15:53:39 -04:00
|
|
|
end
|