Skip to content
Snippets Groups Projects
Commit aece98e1 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Adding available API versions to API root

parent e2362adb
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ from rest_framework import parsers, status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.reverse import reverse as drf_reverse
from rest_framework.settings import api_settings
from rest_framework.views import APIView
from api.backends import LigoAuthentication
......@@ -136,6 +137,7 @@ class GracedbRoot(APIView):
"superevent-categories":
dict(Superevent.SUPEREVENT_CATEGORY_CHOICES),
"voevent-types" : dict(VOEvent.VOEVENT_TYPE_CHOICES),
"API_VERSIONS": api_settings.ALLOWED_VERSIONS,
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment