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
|
2022-12-29 07:31:05 -05:00
|
|
|
mount ::DiscourseChatIntegration::AdminEngine,
|
|
|
|
at: "/admin/plugins/chat-integration",
|
|
|
|
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
|
2022-12-29 07:31:05 -05:00
|
|
|
post "/slack/command" =>
|
|
|
|
"discourse_chat_integration/provider/slack_provider/slack_command#command"
|
2017-08-01 15:53:39 -04:00
|
|
|
end
|