forked from External/greenlight
GRN-59: Implemented pagination on the API call (#370)
* Added the env variable and functionality to paginate the call to the bbbapi * Update user.rb
This commit is contained in:
committed by
Jesus Federico
parent
ab6655554c
commit
3195bb4429
@ -89,5 +89,8 @@ module Greenlight
|
||||
|
||||
# Configure which settings are available to user on room creation/edit after creation
|
||||
config.room_features = ENV['ROOM_FEATURES'] || ""
|
||||
|
||||
# The maximum number of rooms included in one bbbapi call
|
||||
config.pagination_number = ENV['PAGINATION_NUMBER'].to_i == 0 ? 25 : ENV['PAGINATION_NUMBER'].to_i
|
||||
end
|
||||
end
|
||||
|
@ -72,11 +72,14 @@ Rails.application.routes.draw do
|
||||
post '/update_settings', to: 'rooms#update_settings'
|
||||
post '/start', to: 'rooms#start', as: :start_room
|
||||
get '/logout', to: 'rooms#logout', as: :logout_room
|
||||
end
|
||||
|
||||
# Recording operations routes
|
||||
scope '/:meetingID' do
|
||||
# Manage recordings
|
||||
scope '/:record_id' do
|
||||
post '/', to: 'rooms#update_recording', as: :update_recording
|
||||
delete '/', to: 'rooms#delete_recording', as: :delete_recording
|
||||
post '/', to: 'recordings#update_recording', as: :update_recording
|
||||
delete '/', to: 'recordings#delete_recording', as: :delete_recording
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user