Fixes: 1) Simplify Prometheus and GraphQL path definitions in `evibes/api_urls.py`; Extra: 1) Add line breaks across multiple files for improved code readability.
13 lines
323 B
Python
13 lines
323 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from blog.viewsets import PostViewSet
|
|
|
|
app_name = "blog"
|
|
|
|
payment_router = DefaultRouter()
|
|
payment_router.register(prefix=r"posts", viewset=PostViewSet, basename="posts")
|
|
|
|
urlpatterns = [
|
|
path(r"", include(payment_router.urls)),
|
|
]
|