Do not require authentication to access the public website content
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 54s
Run unit tests / check-licenses (pull_request) Successful in 2m52s
Run unit tests / unit_tests (pull_request) Successful in 7m42s
Run unit tests / rubocop (pull_request) Failing after 21s
Run unit tests / build-static-assets (pull_request) Has been skipped

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

View File

@ -3,6 +3,9 @@
# 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