|
|
|
@ -1,5 +1,5 @@ |
|
|
|
from django.urls import path, re_path , include |
|
|
|
from rest_framework.routers import DefaultRouter |
|
|
|
from rest_framework.routers import DefaultRouter, SimpleRouter |
|
|
|
|
|
|
|
from .views import BlogListAPIView, RelatedBlogsAPIView, BlogDetailBySlugAPIView |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ from .views_admin import AdminBlogViewSet, AdminBlogContentViewSet, AdminBlogSeo |
|
|
|
app_name = 'blog' |
|
|
|
|
|
|
|
# --- Admin Router Setup --- |
|
|
|
admin_router = DefaultRouter() |
|
|
|
admin_router = SimpleRouter() |
|
|
|
admin_router.register(r'blogs', AdminBlogViewSet, basename='admin-blogs') |
|
|
|
admin_router.register(r'contents', AdminBlogContentViewSet, basename='admin-blog-contents') |
|
|
|
admin_router.register(r'seo', AdminBlogSeoViewSet, basename='admin-blog-seo') |
|
|
|
|