Coverage for tests/test_app/urls.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-03-12 13:49 +0000

1"""napse URL Configuration. 

2 

3The `urlpatterns` list routes URLs to views. For more information please see: 

4 https://docs.djangoproject.com/en/3.2/topics/http/urls/ 

5 

6Examples: 

7 Function views 

8 1. Add an import: from my_app import views 

9 2. Add a URL to urlpatterns: path('', views.home, name='home') 

10 Class-based views 

11 1. Add an import: from other_app.views import Home 

12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 

13 Including another URLconf 

14 1. Import the include() function: from django.urls import include, path 

15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 

16 

17""" 

18 

19from django.conf.urls import include 

20from django.contrib import admin 

21from django.urls import path 

22 

23from django_napse.api.api_urls import main_api_router 

24 

25urlpatterns = [ 

26 path("admin/", admin.site.urls), 

27 path("api/", include(main_api_router.urls), name="api"), 

28]