Merge pull request 'Do not require authentication to access the public website content' (#274) from public-access-website into main
Some checks failed
Run unit tests / rubocop (push) Failing after 30s
Run unit tests / check-licenses (push) Successful in 32s
Run unit tests / copyright_notice (push) Successful in 45s
Run unit tests / unit_tests (push) Successful in 1m27s
Run unit tests / build-static-assets (push) Has been skipped

Reviewed-on: #274
This commit is contained in:
bustikiller 2025-06-09 06:35:59 +00:00
commit d1791e12c7

View File

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