We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Use different namespace and endpoint name for `/safe-apps`
The endpoint `/api/v1/safe-apps` is currently under the `v1` namespace and `safe-apps` endpoint name.

To align it better with the future endpoints the following should be changed:

- the namespace changes from `v1` to `safe-apps`
- the endpoint name changes from `safe-apps` to `list`

This results in a reverse url resolution with `safe-apps:list` instead of `v1:safe-apps`

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/config/urls.py`
Content:
```
1 from django.contrib import admin
2 from django.http import HttpResponse
3 from django.urls import include, path, re_path
4 from drf_yasg.views import get_schema_view
5 from rest_framework import permissions
6 
7 schema_view = get_schema_view(
8     validators=["flex", "ssv"],
9     public=True,
10     permission_classes=(permissions.AllowAny,),
11 )
12 
13 urlpatterns = [
14     path("api/v1/", include("safe_apps.urls", namespace="v1")),
15     path("api/v1/", include("chains.urls", namespace="chains")),
16     path("admin/", admin.site.urls),
17     path("check/", lambda request: HttpResponse("Ok"), name="check"),
18     re_path(
19         r"^swagger(?P<format>\.json|\.yaml)$",
20         schema_view.without_ui(cache_timeout=0),
21         name="schema-json",
22     ),
23     re_path(
24         r"^$",
25         schema_view.with_ui("swagger", cache_timeout=0),
26         name="schema-swagger-ui",
27     ),
28 ]
29
```

Path: `src/safe_apps/urls.py`
Content:
```
1 from django.urls import path
2 
3 from .views import SafeAppsListView
4 
5 app_name = "apps"
6 
7 urlpatterns = [
8     path("safe-apps/", SafeAppsListView.as_view(), name="safe-apps"),
9 ]
10
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/src/config/urls.py b/src/config/urls.py
--- a/src/config/urls.py
+++ b/src/config/urls.py
@@ -11,7 +11,7 @@
 )
 
 urlpatterns = [
-    path("api/v1/", include("safe_apps.urls", namespace="v1")),
+    path("api/v1/", include("safe_apps.urls", namespace="safe-apps")),
     path("api/v1/", include("chains.urls", namespace="chains")),
     path("admin/", admin.site.urls),
     path("check/", lambda request: HttpResponse("Ok"), name="check"),
diff --git a/src/safe_apps/urls.py b/src/safe_apps/urls.py
--- a/src/safe_apps/urls.py
+++ b/src/safe_apps/urls.py
@@ -5,5 +5,5 @@
 app_name = "apps"
 
 urlpatterns = [
-    path("safe-apps/", SafeAppsListView.as_view(), name="safe-apps"),
+    path("safe-apps/", SafeAppsListView.as_view(), name="list"),
 ]

{"golden_diff": "diff --git a/src/config/urls.py b/src/config/urls.py\n--- a/src/config/urls.py\n+++ b/src/config/urls.py\n@@ -11,7 +11,7 @@\n )\n \n urlpatterns = [\n-    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"v1\")),\n+    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"safe-apps\")),\n     path(\"api/v1/\", include(\"chains.urls\", namespace=\"chains\")),\n     path(\"admin/\", admin.site.urls),\n     path(\"check/\", lambda request: HttpResponse(\"Ok\"), name=\"check\"),\ndiff --git a/src/safe_apps/urls.py b/src/safe_apps/urls.py\n--- a/src/safe_apps/urls.py\n+++ b/src/safe_apps/urls.py\n@@ -5,5 +5,5 @@\n app_name = \"apps\"\n \n urlpatterns = [\n-    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"safe-apps\"),\n+    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"list\"),\n ]\n", "issue": "Use different namespace and endpoint name for `/safe-apps`\nThe endpoint `/api/v1/safe-apps` is currently under the `v1` namespace and `safe-apps` endpoint name.\r\n\r\nTo align it better with the future endpoints the following should be changed:\r\n\r\n- the namespace changes from `v1` to `safe-apps`\r\n- the endpoint name changes from `safe-apps` to `list`\r\n\r\nThis results in a reverse url resolution with `safe-apps:list` instead of `v1:safe-apps`\n", "before_files": [{"content": "from django.contrib import admin\nfrom django.http import HttpResponse\nfrom django.urls import include, path, re_path\nfrom drf_yasg.views import get_schema_view\nfrom rest_framework import permissions\n\nschema_view = get_schema_view(\n    validators=[\"flex\", \"ssv\"],\n    public=True,\n    permission_classes=(permissions.AllowAny,),\n)\n\nurlpatterns = [\n    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"v1\")),\n    path(\"api/v1/\", include(\"chains.urls\", namespace=\"chains\")),\n    path(\"admin/\", admin.site.urls),\n    path(\"check/\", lambda request: HttpResponse(\"Ok\"), name=\"check\"),\n    re_path(\n        r\"^swagger(?P<format>\\.json|\\.yaml)$\",\n        schema_view.without_ui(cache_timeout=0),\n        name=\"schema-json\",\n    ),\n    re_path(\n        r\"^$\",\n        schema_view.with_ui(\"swagger\", cache_timeout=0),\n        name=\"schema-swagger-ui\",\n    ),\n]\n", "path": "src/config/urls.py"}, {"content": "from django.urls import path\n\nfrom .views import SafeAppsListView\n\napp_name = \"apps\"\n\nurlpatterns = [\n    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"safe-apps\"),\n]\n", "path": "src/safe_apps/urls.py"}], "after_files": [{"content": "from django.contrib import admin\nfrom django.http import HttpResponse\nfrom django.urls import include, path, re_path\nfrom drf_yasg.views import get_schema_view\nfrom rest_framework import permissions\n\nschema_view = get_schema_view(\n    validators=[\"flex\", \"ssv\"],\n    public=True,\n    permission_classes=(permissions.AllowAny,),\n)\n\nurlpatterns = [\n    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"safe-apps\")),\n    path(\"api/v1/\", include(\"chains.urls\", namespace=\"chains\")),\n    path(\"admin/\", admin.site.urls),\n    path(\"check/\", lambda request: HttpResponse(\"Ok\"), name=\"check\"),\n    re_path(\n        r\"^swagger(?P<format>\\.json|\\.yaml)$\",\n        schema_view.without_ui(cache_timeout=0),\n        name=\"schema-json\",\n    ),\n    re_path(\n        r\"^$\",\n        schema_view.with_ui(\"swagger\", cache_timeout=0),\n        name=\"schema-swagger-ui\",\n    ),\n]\n", "path": "src/config/urls.py"}, {"content": "from django.urls import path\n\nfrom .views import SafeAppsListView\n\napp_name = \"apps\"\n\nurlpatterns = [\n    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"list\"),\n]\n", "path": "src/safe_apps/urls.py"}]}