Skip to content
Snippets Groups Projects
Commit 472bec51 authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

add myme types paginationr

parent 0f11914b
No related branches found
No related tags found
No related merge requests found
class V1::MimeTypesController < ApplicationController class V1::MimeTypesController < ApplicationController
include ::Paginator
before_action :authenticate_user!, except: [:index, :show] before_action :authenticate_user!, except: [:index, :show]
before_action :set_mime_type, only: [:show, :update, :destroy] before_action :set_mime_type, only: [:show, :update, :destroy]
# GET /mime_types # GET /mime_types
# GET /mime_types.json # GET /mime_types.json
def index def index
mime_types = paginate MimeType.all mime_types = paginate MimeType
render json: mime_types render json: mime_types
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment