mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-27 09:52:22 +00:00
15 lines
525 B
Python
15 lines
525 B
Python
|
# Copyright (C) 2018-2024 by BDE ENS Paris-Saclay
|
||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
from .views import AllergenViewSet, BasicFoodViewSet, QRCodeViewSet, TransformedFoodViewSet
|
||
|
|
||
|
|
||
|
def register_food_urls(router, path):
|
||
|
"""
|
||
|
Configure router for Food REST API.
|
||
|
"""
|
||
|
router.register(path + '/allergen', AllergenViewSet)
|
||
|
router.register(path + '/basic_food', BasicFoodViewSet)
|
||
|
router.register(path + '/qrcode', QRCodeViewSet)
|
||
|
router.register(path + '/transformed_food', TransformedFoodViewSet)
|