mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-11 22:14:44 +00:00
* FEATURE: Composer AI helper This change introduces a new composer button for the group members listed in the `ai_helper_allowed_groups` site setting. Users can use chatGPT to review, improve, or translate their posts to English. * Add a safeguard for PMs and don't rely on parentView
11 lines
308 B
Ruby
11 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
DiscourseAi::Engine.routes.draw do
|
|
# AI-helper routes
|
|
scope module: :ai_helper, path: "/ai-helper", defaults: { format: :json } do
|
|
post "suggest" => "assistant#suggest"
|
|
end
|
|
end
|
|
|
|
Discourse::Application.routes.append { mount ::DiscourseAi::Engine, at: "discourse-ai" }
|