Files
zod-backend/zod_bank/junior/urls.py
2023-06-26 10:38:49 +05:30

18 lines
575 B
Python

""" Urls files"""
"""Django import"""
from django.urls import path, include
from rest_framework.decorators import api_view
from .views import UpdateJuniorProfile, ValidateGuardianCode
"""Third party import"""
from rest_framework import routers
"""Router"""
router = routers.SimpleRouter()
"""API End points with router"""
router.register('complete-junior-profile', UpdateJuniorProfile, basename='profile-update')
router.register('validate-guardian-code', ValidateGuardianCode, basename='validate-guardian-code')
urlpatterns = [
path('api/v1/', include(router.urls)),
]