mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
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" }
|