Do not require authentication to access the public website content #274
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user