mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-05 05:37:50 +02:00
Run black
This commit is contained in:
@@ -34,13 +34,21 @@ if settings.DEBUG:
|
||||
from rest_framework.schemas import get_schema_view
|
||||
|
||||
urlpatterns += [
|
||||
path('swagger/', TemplateView.as_view(
|
||||
template_name='swagger.html',
|
||||
extra_context={'schema_url': 'openapi-schema'}
|
||||
), name='swagger'),
|
||||
path('openapi', get_schema_view(
|
||||
title="RAM - Railroad Assets Manager",
|
||||
description="RAM API",
|
||||
version="1.0.0"
|
||||
), name='openapi-schema'),
|
||||
path(
|
||||
"swagger/",
|
||||
TemplateView.as_view(
|
||||
template_name="swagger.html",
|
||||
extra_context={"schema_url": "openapi-schema"},
|
||||
),
|
||||
name="swagger",
|
||||
),
|
||||
path(
|
||||
"openapi",
|
||||
get_schema_view(
|
||||
title="RAM - Railroad Assets Manager",
|
||||
description="RAM API",
|
||||
version="1.0.0",
|
||||
),
|
||||
name="openapi-schema",
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user