2022-07-05 11:45:38 +00:00
|
|
|
class Public::Api::V1::PortalsController < PublicController
|
2022-09-07 06:52:24 +00:00
|
|
|
before_action :ensure_custom_domain_request, only: [:show]
|
2022-07-05 11:45:38 +00:00
|
|
|
before_action :set_portal
|
|
|
|
|
|
|
|
def show; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_portal
|
2022-09-07 06:52:24 +00:00
|
|
|
@portal = @portals.find_by!(slug: params[:slug], archived: false)
|
2022-07-05 11:45:38 +00:00
|
|
|
end
|
|
|
|
end
|