2023-03-15 16:02:20 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
DiscourseAi::Engine.routes.draw do
|
|
|
|
# AI-helper routes
|
|
|
|
scope module: :ai_helper, path: "/ai-helper", defaults: { format: :json } do
|
2023-03-17 14:14:19 -04:00
|
|
|
get "prompts" => "assistant#prompts"
|
2023-03-15 16:02:20 -04:00
|
|
|
post "suggest" => "assistant#suggest"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Discourse::Application.routes.append { mount ::DiscourseAi::Engine, at: "discourse-ai" }
|