Method: Api::V1::NotesController#index

Defined in:
lib/generators/jinda_engine/templates/app/controllers/api/v1/notes_controller.rb,
app/controllers/jindra_engine/api/v1/notes_controller.rb

#indexObject

before_action :xload_current_ma_user, only: [:destroy]



5
6
7
8
# File 'lib/generators/jinda_engine/templates/app/controllers/api/v1/notes_controller.rb', line 5

def index
  @notes = Note.desc(:created_at).page(params[:page]).per(10)
  render json: @notes
end