File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1313 1. Import the include() function: from django.conf.urls import url, include
1414 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515"""
16- from django .urls import re_path , include
16+ from django .urls import re_path , path , include
1717from django .contrib import admin
1818from fcm_django .api .rest_framework import FCMDeviceViewSet , FCMDeviceAuthorizedViewSet
1919from rest_framework .routers import DefaultRouter
2020from rest_framework .documentation import include_docs_urls
21+ from rest_framework .schemas import get_schema_view
2122
2223router = DefaultRouter ()
2324router .register (r'devices' , FCMDeviceViewSet )
2425
2526urlpatterns = [
2627 re_path (r'^admin/' , admin .site .urls ),
2728 re_path (r'^docs/' , include_docs_urls (title = 'FCM django web demo' )),
29+ path (
30+ "openapi" ,
31+ get_schema_view (title = "FCM Django" , description = "FCM Django" ),
32+ name = "openapi-schema" ,
33+ ),
2834 re_path (r'^' , include (router .urls )),
2935]
Original file line number Diff line number Diff line change 11fcm-django == 1.0.13
22coreapi == 2.3.1
33django-cors-headers == 3.6.0
4- djangorestframework == 3.14.0
4+ djangorestframework == 3.15.1
55django-sslserver == 0.22
66Django == 4.2.11
77six == 1.15.0
88urllib3 === 1.26.18
9+ pyyaml === 6.0.1
You can’t perform that action at this time.
0 commit comments