from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name="index" ),
    path('generate_otp', views.generate_otp),
    path('generate_otp/success/<id>', views.generation_success, name="generation_success"),
    path('hide_otp', views.hide_otp),
    path('remove_otp/<otp_id>', views.remove_otp),
    path('lock_history', views.lock_history),

    # Auth Views
    path('login', views.user_login, name='login'),
    path('logout', views.user_logout, name="logout"),

    # API Auth Views
    path('api/auth/login', views.API_user_login),
    path('api/auth/signup', views.API_user_signup),
    path('api/user/delete', views.API_user_delete),
    path('api/auth/logout', views.API_user_logout),

    # API Views
    path('otp_validation/<otp>', views.opt_validation),

    #a2oj
    path('a2oj/<handle>', views.a2oj)
]