1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-11-27 07:33:01 +00:00
plateforme-tfjm2/registration/api/urls.py
Emmy D'Anello d24f8cab16
Fix API router with newer version
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
2024-10-21 19:40:19 +02:00

14 lines
467 B
Python

# Copyright (C) 2020 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later
from .views import PaymentViewSet, RegistrationViewSet, VolunteersViewSet
def register_registration_urls(router, path):
"""
Configure router for registration REST API.
"""
router.register(path + "/payment", PaymentViewSet)
router.register(path + "/registration", RegistrationViewSet)
router.register(path + "/volunteers", VolunteersViewSet, basename="volunteers")