forum: add /forum_topic_visits.{json,xml} endpoint.
For debugging purposes only.
This commit is contained in:
9
app/controllers/forum_topic_visits_controller.rb
Normal file
9
app/controllers/forum_topic_visits_controller.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user