1
0
mirror of https://github.com/ansible/galaxy.git synced 2026-02-05 18:45:16 +01:00

Use relative paths for 'available_versions' paths (#2009)

This is to allow the ApiRootView to be somewhere
other than /api.
This commit is contained in:
Adrian Likins
2019-10-01 08:48:32 -04:00
committed by Chris Houseknecht
parent ea1669bf41
commit 6cadfadbe9

View File

@@ -115,13 +115,12 @@ class ApiRootView(base_views.APIView):
def get(self, request, format=None):
# list supported API versions
current = reverse('api:api_v1_root_view', args=[])
data = dict(
description='GALAXY REST API',
current_version='v1',
available_versions=dict(
v1=current,
v2=reverse('api:v2:api_v2_root_view'),
v1="v1/",
v2="v2/",
),
server_version=version.get_package_version('galaxy'),
version_name=version.get_version_name(),