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