Change api redicrect

This commit is contained in:
IRBorisov 2023-09-24 13:23:52 +03:00
parent fd53346653
commit f8c087ad87
2 changed files with 2 additions and 3 deletions

View File

@ -11,8 +11,7 @@ urlpatterns = [
path('admin', admin.site.urls),
path('api/', include('apps.rsform.urls')),
path('users/', include('apps.users.urls')),
path('docs/', SpectacularSwaggerView.as_view(), name='docs'),
path('schema', SpectacularAPIView.as_view(), name='schema'),
path('redoc', SpectacularRedocView.as_view()),
path('', lambda: redirect('docs/', permanent=True)),
path('', SpectacularSwaggerView.as_view(), name='home'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

View File

@ -21,7 +21,7 @@ export const urls = {
gitrepo: 'https://github.com/IRBorisov/ConceptPortal',
mailportal: 'mailto:portal@acconcept.ru',
restapi: 'https://api.portal.acconcept.ru/docs/'
restapi: 'https://api.portal.acconcept.ru'
};
export const resources = {