1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-27 09:52:22 +00:00
nk20/apps/note/api/urls.py

21 lines
815 B
Python
Raw Permalink Normal View History

# Copyright (C) 2018-2021 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, \
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)
router.register(path + '/trust', TrustViewSet)
2020-03-28 16:42:29 +00:00
router.register(path + '/consumer', ConsumerViewSet)
2020-03-11 00:03:15 +00:00
router.register(path + '/transaction/category', TemplateCategoryViewSet)
router.register(path + '/transaction/transaction', TransactionViewSet)
router.register(path + '/transaction/template', TransactionTemplateViewSet)