nk20/apps/note/api/urls.py

19 lines
744 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, \
2020-03-11 10:15:03 +00:00
TemplateCategoryViewSet, TransactionViewSet, TransactionTemplateViewSet
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)
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)