added more legacy api endpoints
This commit is contained in:
@@ -3,6 +3,14 @@ class LegacyController < ApplicationController
|
||||
@post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])
|
||||
@posts = @post_set.posts
|
||||
end
|
||||
|
||||
def users
|
||||
@users = User.search(params).limit(100)
|
||||
end
|
||||
|
||||
def tags
|
||||
@tags = Tag.search(params).limit(100)
|
||||
end
|
||||
|
||||
private
|
||||
def tag_query
|
||||
|
||||
Reference in New Issue
Block a user