| 1 |
from django.urls import re_path |
| 2 |
|
| 3 |
from testproj.urls import required_urlpatterns |
| 4 |
|
| 5 |
from .url_versioning import VERSION_PREFIX_URL, SnippetList, VersionedSchemaView |
| 6 |
|
| 7 |
urlpatterns = required_urlpatterns + [ |
| 8 |
re_path(VERSION_PREFIX_URL + r"extra/snippets/$", SnippetList.as_view()), |
| 9 |
re_path(VERSION_PREFIX_URL + r"extra2/snippets/$", SnippetList.as_view()), |
| 10 |
re_path( |
| 11 |
VERSION_PREFIX_URL + r"swagger(?P<format>.json|.yaml)$", |
| 12 |
VersionedSchemaView.without_ui(), |
| 13 |
name="vschema-json", |
| 14 |
), |
| 15 |
] |