mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 16:44:54 +00:00
web_admin module added, api for article created
This commit is contained in:
16
web_admin/urls.py
Normal file
16
web_admin/urls.py
Normal file
@ -0,0 +1,16 @@
|
||||
"""
|
||||
web_admin urls file
|
||||
"""
|
||||
# django imports
|
||||
from django.urls import path, include
|
||||
from rest_framework import routers
|
||||
|
||||
from web_admin.views import ArticleViewSet
|
||||
|
||||
router = routers.SimpleRouter()
|
||||
|
||||
router.register('article', ArticleViewSet, basename='article')
|
||||
|
||||
urlpatterns = [
|
||||
path('api/v1/', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user