mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +03:00
Use path in Default router
This commit is contained in:
parent
765d7288eb
commit
1486e73791
|
@ -362,7 +362,7 @@ class DefaultRouter(SimpleRouter):
|
|||
|
||||
if self.include_root_view:
|
||||
view = self.get_api_root_view(api_urls=urls)
|
||||
root_url = re_path(r'^$', view, name=self.root_view_name)
|
||||
root_url = path('', view, name=self.root_view_name)
|
||||
urls.append(root_url)
|
||||
|
||||
if self.include_format_suffixes:
|
||||
|
|
Loading…
Reference in New Issue
Block a user