Skip to content

Commit 1211e54

Browse files
committed
Just return latest 100 images.
Ditching pagination for now since it’s outside the scope of the demo to do endless scrolling.
1 parent a87c192 commit 1211e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app/controllers/api/v1/images_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Api::V1::ImagesController < ApplicationController
22
def index
3-
render json: Image.processed.page(params[:page])
3+
render json: Image.processed.newest.limit(100)
44
end
55

66
def show

0 commit comments

Comments
 (0)