2024-02-07 01:26:49 +00:00
|
|
|
# Copyright (C) 2018-2024 by BDE ENS Paris-Saclay
|
2020-02-07 16:02:07 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-03-28 16:42:29 +00:00
|
|
|
from .views import NotePolymorphicViewSet, AliasViewSet, ConsumerViewSet, \
|
2021-09-05 19:55:22 +00:00
|
|
|
TemplateCategoryViewSet, TransactionViewSet, TransactionTemplateViewSet, \
|
|
|
|
TrustViewSet
|
2020-02-07 16:02:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
def register_note_urls(router, path):
|
|
|
|
"""
|
|
|
|
Configure router for Note REST API.
|
|
|
|
"""
|
2020-02-08 14:08:55 +00:00
|
|
|
router.register(path + '/note', NotePolymorphicViewSet)
|
|
|
|
router.register(path + '/alias', AliasViewSet)
|
2021-09-05 19:55:22 +00:00
|
|
|
router.register(path + '/trust', TrustViewSet)
|
2020-03-28 16:42:29 +00:00
|
|
|
router.register(path + '/consumer', ConsumerViewSet)
|
2020-04-09 22:02:22 +00:00
|
|
|
|
2020-03-11 00:03:15 +00:00
|
|
|
router.register(path + '/transaction/category', TemplateCategoryViewSet)
|
2020-02-07 19:51:25 +00:00
|
|
|
router.register(path + '/transaction/transaction', TransactionViewSet)
|
|
|
|
router.register(path + '/transaction/template', TransactionTemplateViewSet)
|