15 lines
354 B
Ruby
15 lines
354 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ::Docs
|
|
class Engine < ::Rails::Engine
|
|
isolate_namespace Docs
|
|
|
|
config.after_initialize do
|
|
Discourse::Application.routes.append do
|
|
mount ::Docs::Engine, at: "/#{GlobalSetting.docs_path}"
|
|
get "/knowledge-explorer", to: redirect("/#{GlobalSetting.docs_path}")
|
|
end
|
|
end
|
|
end
|
|
end
|