|
@@ -14,8 +14,14 @@ Including another URLconf
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
"""
|
|
|
from django.contrib import admin
|
|
|
-from django.urls import path
|
|
|
+from django.urls import path, re_path
|
|
|
+from rest_framework import routers
|
|
|
+from .views import XmlGeneratorView
|
|
|
+
|
|
|
+
|
|
|
+router = routers.SimpleRouter(trailing_slash=False)
|
|
|
|
|
|
urlpatterns = [
|
|
|
+ re_path(r'^generate/xml', view=XmlGeneratorView.as_view()),
|
|
|
path('admin/', admin.site.urls),
|
|
|
]
|