File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ def create_token
5656 OAuth ::Factory . instance . register_token_creator ( FaspexPubLink )
5757 module Api
5858 class Faspex < Aspera ::Rest
59+ # endpoint for authentication API
60+ PATH_AUTH = 'auth'
61+ PATH_API_V5 = 'api/v5'
62+ PATH_HEALTH = 'configuration/ping'
63+ private_constant :PATH_AUTH ,
64+ :PATH_API_V5 ,
65+ :PATH_HEALTH
5966 RECIPIENT_TYPES = %w[ user workgroup external_user distribution_list shared_inbox ] . freeze
6067 PACKAGE_TERMINATED = %w[ completed failed ] . freeze
6168 # list of supported mailbox types (to list packages)
@@ -219,13 +226,6 @@ def initialize(
219226 def auth_api
220227 Rest . new ( **params , base_url : base_url . sub ( PATH_API_V5 , PATH_AUTH ) )
221228 end
222- # endpoint for authentication API
223- PATH_AUTH = 'auth'
224- PATH_API_V5 = 'api/v5'
225- PATH_HEALTH = 'configuration/ping'
226- private_constant :PATH_AUTH ,
227- :PATH_API_V5 ,
228- :PATH_HEALTH
229229 end
230230 end
231231end
You can’t perform that action at this time.
0 commit comments