Compare commits

...

1 Commits

Author SHA1 Message Date
ed20e51b93 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
2025-06-09 08:14:51 +02:00

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