From 3832f1d8404e2f038a296694f0f9daed833a7f9c Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Mon, 9 Jun 2025 08:14:51 +0200 Subject: [PATCH] Do not require authentication to access the public website content --- app/controllers/websites_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/websites_controller.rb b/app/controllers/websites_controller.rb index 46e0d01..44b1fb1 100644 --- a/app/controllers/websites_controller.rb +++ b/app/controllers/websites_controller.rb @@ -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