mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 01:55:21 +00:00
20 lines
581 B
Python
20 lines
581 B
Python
""" Urls files"""
|
|
"""Django import"""
|
|
from django.urls import path, include
|
|
from .views import SignupViewset, UpdateGuardianProfile
|
|
"""Third party import"""
|
|
from rest_framework import routers
|
|
|
|
"""Define Router"""
|
|
router = routers.SimpleRouter()
|
|
|
|
"""API End points with router"""
|
|
"""Sign up API"""
|
|
router.register('sign-up', SignupViewset, basename='sign-up')
|
|
"""Create guardian profile API"""
|
|
router.register('create-guardian-profile', UpdateGuardianProfile, basename='update-guardian-profile')
|
|
"""Define Url pattern"""
|
|
urlpatterns = [
|
|
path('api/v1/', include(router.urls)),
|
|
]
|