zammad/app/controllers/public_links_controller.rb
2026-01-02 15:41:09 +02:00

32 lines
668 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class PublicLinksController < ApplicationController
include CanPrioritize
prepend_before_action :authorize!, except: %i[show index]
prepend_before_action :authentication_check, except: %i[show index]
def index
model_index_render(PublicLink, params)
end
def show
model_show_render(PublicLink, params)
end
def create
model_create_render(PublicLink, params)
end
def update
model_update_render(PublicLink, params)
end
def search
model_search_render(PublicLink, params)
end
def destroy
model_destroy_render(PublicLink, params)
end
end