Fakultas Ilmu Komputer UI

Commit 29cbc5fb authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

[REFACTOR] Fix inconsistency in basename for router

parent 9d896a80
Pipeline #39313 passed with stages
in 2 minutes and 46 seconds
......@@ -10,10 +10,10 @@ from apps.cases.views import (
router = DefaultRouter()
router.register(r"case-subjects", CaseSubjectViewSet)
router.register(r"positive-cases", PositiveCaseViewSet)
router.register(r"monitoring-cases", MonitoringCaseViewSet)
router.register(r"investigation-cases", InvestigationCaseViewSet)
router.register(r"case-subjects", CaseSubjectViewSet, basename="case-subject")
router.register(r"positive-cases", PositiveCaseViewSet, basename="positive-case")
router.register(r"monitoring-cases", MonitoringCaseViewSet, basename="monitoring-case")
router.register(r"investigation-cases", InvestigationCaseViewSet, basename="investigation-case")
urlpatterns = [
path("", include(router.urls)),
......
......@@ -6,7 +6,7 @@ from apps.logs.views import LogViewSet
router = DefaultRouter()
router.register(r"", LogViewSet, basename="account")
router.register(r"", LogViewSet, basename="log")
urlpatterns = [
path("", include(router.urls)),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment