<reponame>Jay206-Programmer/FEASTA_NEW<filename>authentication/urls.py
from django.urls import path
from .views import *
import time
import threading
import requests

urlpatterns = [
    
    #URL For User Login
    path('auth/login/',UserLoginClass.as_view()),
    path('auth/regestration/',UserRegestrationClass.as_view()),
    path('auth/admin_regestration/',AdminRegestrationClass.as_view()),
    path('auth/admin_login/',AdminLoginClass.as_view()),
    path('verify/<str:unique_id>',verify_user),
    path('verify/admin/<str:unique_id>',verify_admin),
    path('auth/get_login_status/',LoginStatusClass.as_view()),
    path('canteens/',CanteenInfoClass.as_view()),
    path('get_reviews/',GetReviewsClass.as_view()),
    path('post_reviews/',PostReviewClass.as_view()),
]

def KeepHerokuAlive():
    while True:
        res = requests.get("https://feasta-postgres.herokuapp.com/common/")
        time.sleep(1700)
        
t3 = threading.Thread(target=KeepHerokuAlive)
t3.start()