24 lines
644 B
Python
24 lines
644 B
Python
# blog_prj/urls.py
|
|
|
|
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from drf_yasg.views import get_schema_view
|
|
from drf_yasg import openapi
|
|
from rest_framework import permissions
|
|
|
|
schema_view = get_schema_view(
|
|
openapi.Info(
|
|
title="Blog API",
|
|
default_version='v1',
|
|
description="MSA Django Blog API",
|
|
),
|
|
public=True,
|
|
permission_classes=[permissions.AllowAny],
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('api/blog/', include('blog.urls')), # ✅ 이 줄 추가
|
|
path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
|
|
]
|