add new api

This commit is contained in:
xoliqberdiyev
2026-04-27 14:50:59 +05:00
parent 306aecc956
commit 7134b2c185
4 changed files with 38 additions and 8 deletions

View File

@@ -33,8 +33,10 @@ from .views import (
ArchiveEvaluationrequestView, GetArchivedAutoEvaluationListAPIView, ArchivedAutoEvaluation,
GetArchivedQuickevaluationListAPIView, ChangeQuickevaluationAPIView, ArchivedReqEvaluation,
GetArchivedReqEvaluationListAPIView,
AvgCostView,
)
router = DefaultRouter()
router.register("document-category", DocumentCategoryView, basename="DocumentCategory")
router.register("document", DocumentView, basename="Document")
@@ -95,5 +97,9 @@ urlpatterns = [
path("req-evaluvation-change-status/", GetArchivedReqEvaluationListAPIView.as_view(),
name="archived-req-evaluation"),
path(
"calculate_avg_cost/",
AvgCostView.as_view(),
name="calculate-avg-cost"
)
]