Initial Commit

This commit is contained in:
jain
2023-06-23 19:13:49 +05:30
parent 501deaac0b
commit 8bc3a307c0
49 changed files with 1752 additions and 0 deletions

17
zod_bank/base/routers.py Normal file
View File

@ -0,0 +1,17 @@
"""
Custom routers for job sourcing .
"""
# third party imports
from rest_framework.routers import DefaultRouter
class OptionalSlashRouter(DefaultRouter):
"""
optional slash router class
"""
def __init__(self):
"""
explicitly appending '/' in urls if '/' doesn't exists for making common url patterns .
"""
super(OptionalSlashRouter, self).__init__()
self.trailing_slash = '/?'