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