Do not require authentication to access the public website content #274

Merged
bustikiller merged 1 commits from public-access-website into main 2025-06-09 06:36:00 +00:00

View File

@ -3,6 +3,8 @@
# frozen_string_literal: true
class WebsitesController < ApplicationController
skip_before_action :authenticate_user!, only: :show
def show
render json: current_tenant.website.as_json(only: %i[content]) || {}, status: :ok
end