Do not require authentication to access the public website content
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 40s
Run unit tests / rubocop (pull_request) Successful in 42s
Run unit tests / copyright_notice (pull_request) Successful in 53s
Run unit tests / unit_tests (pull_request) Successful in 1m23s
Run unit tests / build-static-assets (pull_request) Successful in 8m0s

This commit is contained in:
Manuel Bustillo 2025-06-09 08:14:51 +02:00
parent 4e2d046b18
commit 3832f1d840

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