mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
This change makes it easier to add new prompts to our AI helper. We don't have a UI for it yet. You'll have to do it through a console.
12 lines
349 B
Ruby
12 lines
349 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
|
|
get "prompts" => "assistant#prompts"
|
|
post "suggest" => "assistant#suggest"
|
|
end
|
|
end
|
|
|
|
Discourse::Application.routes.append { mount ::DiscourseAi::Engine, at: "discourse-ai" }
|