mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 22:51:24 +08:00
15 lines
374 B
Ruby
15 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
|