Skip to content

Commit 123a670

Browse files
need at beginning
Signed-off-by: Laurent Martin <laurent.martin.l@gmail.com>
1 parent ec7dc03 commit 123a670

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/aspera/api/faspex.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
231231
end

0 commit comments

Comments
 (0)