mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 10:05:21 +00:00
18 lines
575 B
Python
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)),
|
|
]
|