added more legacy api endpoints

This commit is contained in:
albert
2013-01-22 17:42:00 -05:00
parent 5754089c2b
commit e0c563373a
9 changed files with 57 additions and 0 deletions

View File

@@ -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