mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
17 lines
448 B
Ruby
17 lines
448 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class KnowledgeBase::FeedTokensController < ApplicationController
|
|
prepend_before_action :authentication_check
|
|
|
|
def show
|
|
token = Token.ensure_token! 'KnowledgeBaseFeed', persistent: true
|
|
|
|
render json: { token: token }
|
|
end
|
|
|
|
def update
|
|
new_token = Token.renew_token! 'KnowledgeBaseFeed', persistent: true
|
|
|
|
render json: { token: new_token }
|
|
end
|
|
end
|