mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
14 lines
374 B
Ruby
14 lines
374 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class UserRolesController < BaseController
|
|
def index
|
|
user_roles = UserRole.all
|
|
.page(params.dig(:page, :number))
|
|
.per(params.dig(:page, :size))
|
|
render jsonapi: user_roles, each_serializer: UserRoleSerializer
|
|
end
|
|
end
|
|
end
|
|
end
|