From af3fbcbaf8d96085a421d419a62b97b27201b0bc Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 30 Jan 2025 16:35:46 +0530 Subject: [PATCH] [UPDT] HORILLA API: Add horilla_api urls to the project using the generic method --- horilla_api/apps.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/horilla_api/apps.py b/horilla_api/apps.py index c9484e0c4..a6cd8351a 100644 --- a/horilla_api/apps.py +++ b/horilla_api/apps.py @@ -4,3 +4,13 @@ from django.apps import AppConfig class HorillaApiConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "horilla_api" + + def ready(self): + from django.urls import include, path + + from horilla.urls import urlpatterns + + urlpatterns.append( + path("api/", include("horilla_api.urls")), + ) + super().ready()