Skip to content

Commit ae220d1

Browse files
authored
Fix urls for API (#1678)
Signed-off-by: Tushar Goel <[email protected]>
1 parent c923364 commit ae220d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnerablecode/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def __init__(self, *args, **kwargs):
5050
api_v2_router.register("vulnerabilities", VulnerabilityV2ViewSet, basename="vulnerability-v2")
5151

5252
urlpatterns = [
53+
path("api/v2/", include(api_v2_router.urls)),
5354
path(
5455
"robots.txt",
5556
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
@@ -104,7 +105,6 @@ def __init__(self, *args, **kwargs):
104105
TemplateView.as_view(template_name="tos.html"),
105106
name="api_tos",
106107
),
107-
path("api/v2/", include(api_v2_router.urls)),
108108
path(
109109
"admin/",
110110
admin.site.urls,

0 commit comments

Comments
 (0)