forked from e621ng/e621ng
12 lines
251 B
Ruby
12 lines
251 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PopularController < ApplicationController
|
|
respond_to :html, :json
|
|
|
|
def index
|
|
@post_set = PostSets::Popular.new(params[:date], params[:scale])
|
|
@posts = @post_set.posts
|
|
respond_with(@posts)
|
|
end
|
|
end
|