Merge branch 'main' of https://github.com/Central-University-IT-prod/PROD-Animulichki-SkillHub
This commit is contained in:
@@ -1,6 +1,26 @@
|
|||||||
|
from django.contrib import admin
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
from drf_yasg import openapi
|
||||||
|
from drf_yasg.views import get_schema_view
|
||||||
|
|
||||||
|
schema_view = get_schema_view(
|
||||||
|
openapi.Info(title="SkillHub API", default_version="1")
|
||||||
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
# Built-in views
|
||||||
|
path("admin/", admin.site.urls),
|
||||||
|
# API documentation
|
||||||
|
path(
|
||||||
|
"swagger/",
|
||||||
|
schema_view.with_ui("swagger"),
|
||||||
|
name="swagger",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"redoc/",
|
||||||
|
schema_view.with_ui("redoc"),
|
||||||
|
name="redoc",
|
||||||
|
),
|
||||||
path(
|
path(
|
||||||
"users/",
|
"users/",
|
||||||
include("api.users.urls", namespace="users"),
|
include("api.users.urls", namespace="users"),
|
||||||
@@ -12,5 +32,5 @@ urlpatterns = [
|
|||||||
path(
|
path(
|
||||||
"trees/",
|
"trees/",
|
||||||
include("api.tree.urls", namespace="trees"),
|
include("api.tree.urls", namespace="trees"),
|
||||||
)
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,28 +1,7 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib import admin
|
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
from drf_yasg import openapi
|
|
||||||
from drf_yasg.views import get_schema_view
|
|
||||||
|
|
||||||
schema_view = get_schema_view(
|
|
||||||
openapi.Info(title="SkillHub API", default_version="1")
|
|
||||||
)
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# Built-in urls
|
|
||||||
path("admin/", admin.site.urls),
|
|
||||||
# API documentation
|
|
||||||
path(
|
|
||||||
"swagger/",
|
|
||||||
schema_view.with_ui("swagger"),
|
|
||||||
name="swagger",
|
|
||||||
),
|
|
||||||
path(
|
|
||||||
"redoc/",
|
|
||||||
schema_view.with_ui("redoc"),
|
|
||||||
name="redoc",
|
|
||||||
),
|
|
||||||
# API
|
|
||||||
path("api/", include("api.urls")),
|
path("api/", include("api.urls")),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ services:
|
|||||||
DJANGO_DEBUG: ${DJANGO_DEBUG:-false}
|
DJANGO_DEBUG: ${DJANGO_DEBUG:-false}
|
||||||
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS:-*}
|
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS:-*}
|
||||||
DJANGO_INTERNAL_IPS: ${DJANGO_INTERNAL_IPS:-127.0.0.1}
|
DJANGO_INTERNAL_IPS: ${DJANGO_INTERNAL_IPS:-127.0.0.1}
|
||||||
|
DJANGO_CSRF_TRUSTED_ORIGINS: ${DJANGO_CSRF_TRUSTED_ORIGINS:-https://animulichki.ru}
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user