Skip to content

Commit

Permalink
Fix urls for API
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Nov 20, 2024
1 parent 060e20f commit b1d9619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulnerablecode/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b1d9619

Please sign in to comment.