from django.urls import path, include
from . import views
from .filters import UserFilter
from django_filters.views import FilterView

urlpatterns = [
    path('', views.home_page, name = 'home_page'),
    path('index/', views.index, name = 'index'),
    path("login/", views.login_request, name="login"),
    path("logout/", views.logout_request, name="logout"),
    # path('<int:question_id>', views.detail, name='detail'),
    path('index/details/<int:id>', views.details, name = 'details'),
    path("register/", views.register_request, name="register"),
    path('index/details/<int:id>/rent', views.rent, name = 'rent'),
    path('user_view/', views.user_view, name='user_view'),
    path('index/details/<int:id>/return', views.return_book, name = 'return_book'),
    path('index/details/<int:id>/pending_list', views.pending_list, name = 'pending_list'),
    path('books_not_avaible/', views.books_not_avaible, name='books_not_avaible'),
    ]