from django.urls import path
#from django.conf.urls import include
from django.contrib.auth.views import LoginView, LogoutView
from . import views

app_name = 'allowance'
urlpatterns = [
    path('', views.index, name='index'),
    path('home/', views.userhome, name='home'),
    path('update/', views.updateBalance, name='update'),
    path('childhistory/', views.childHistory, name="childhistory"),
    path('addchild/', views.addChild, name="addChild"),
    path('removechild/', views.removeChild, name="removechild"),
    path('changepassword/', views.changePassword, name="changepassword"),
    path('registrationcode/', views.registrationCode, name="registrationcode"),
    path('childbalance/', views.childbalance, name='childbalance'),
    path('userregistration/', views.userregistration, name="userregistration"),
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
]
