Files
danbooru/app/controllers/forum_topic_visits_controller.rb
evazion fcb6f96979 forum: add /forum_topic_visits.{json,xml} endpoint.
For debugging purposes only.
2020-01-22 21:30:00 -06:00

10 lines
269 B
Ruby

class ForumTopicVisitsController < ApplicationController
respond_to :xml, :json
before_action :member_only
def index
@forum_topic_visits = ForumTopicVisit.where(user: CurrentUser.user).paginated_search(params)
respond_with(@forum_topic_visits)
end
end