From ae220d1acfe9b9bc3fa2c995229e7338fa3f8152 Mon Sep 17 00:00:00 2001 From: Tushar Goel <34160672+TG1999@users.noreply.github.com> Date: Sun, 8 Dec 2024 14:55:41 +0530 Subject: [PATCH] Fix urls for API (#1678) Signed-off-by: Tushar Goel --- vulnerablecode/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulnerablecode/urls.py b/vulnerablecode/urls.py index a4da0a7c0..10f7db13f 100644 --- a/vulnerablecode/urls.py +++ b/vulnerablecode/urls.py @@ -50,6 +50,7 @@ def __init__(self, *args, **kwargs): api_v2_router.register("vulnerabilities", VulnerabilityV2ViewSet, basename="vulnerability-v2") urlpatterns = [ + path("api/v2/", include(api_v2_router.urls)), path( "robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain"), @@ -104,7 +105,6 @@ def __init__(self, *args, **kwargs): TemplateView.as_view(template_name="tos.html"), name="api_tos", ), - path("api/v2/", include(api_v2_router.urls)), path( "admin/", admin.site.urls,