API Support (useless, but...)
This commit is contained in:
parent
d641b4cc1c
commit
5ac10b58d5
4 changed files with 81 additions and 0 deletions
12
apps/treasury/api/urls.py
Normal file
12
apps/treasury/api/urls.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from .views import InvoiceViewSet, ProductViewSet
|
||||
|
||||
|
||||
def register_treasury_urls(router, path):
|
||||
"""
|
||||
Configure router for treasury REST API.
|
||||
"""
|
||||
router.register(path + '/invoice', InvoiceViewSet)
|
||||
router.register(path + '/product', ProductViewSet)
|
||||
Loading…
Add table
Add a link
Reference in a new issue