@ -3,7 +3,8 @@ from django.apps import apps
|
||||
from centurion_feature_flag.urls.routers import APIRootView, DefaultRouter
|
||||
|
||||
from accounting.viewsets import (
|
||||
asset
|
||||
asset,
|
||||
asset_notes,
|
||||
)
|
||||
|
||||
|
||||
@ -42,6 +43,7 @@ asset_type_names = str(asset_type_names)[:-1]
|
||||
if not asset_type_names:
|
||||
asset_type_names = 'none'
|
||||
|
||||
router.register('asset/(?P<model_id>[0-9]+)/notes', asset_notes.ViewSet, feature_flag = '2025-00004', basename='_api_v2_asset_note')
|
||||
|
||||
router.register(f'asset/(?P<asset_model>[{asset_type_names}]+)?', asset.ViewSet, feature_flag = '2025-00004', basename='_api_v2_asset_sub')
|
||||
router.register('asset', asset.NoDocsViewSet, feature_flag = '2025-00004', basename='_api_v2_asset')
|
||||
|
Reference in New Issue
Block a user