mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
- Support rendering articles over frontend URL - Support rendering articles over help center URL - Support rendering help center home page in the custom domain root
14 lines
285 B
Ruby
14 lines
285 B
Ruby
class Public::Api::V1::PortalsController < PublicController
|
|
before_action :ensure_custom_domain_request, only: [:show]
|
|
before_action :portal
|
|
layout 'portal'
|
|
|
|
def show; end
|
|
|
|
private
|
|
|
|
def portal
|
|
@portal ||= Portal.find_by!(slug: params[:slug], archived: false)
|
|
end
|
|
end
|