from django.urls import path

from . import views

urlpatterns = [
    path("", views.index, name="index"),
    path("login", views.login_view, name="login"),
    path("logout", views.logout_view, name="logout"),
    path("register", views.register, name="register"),
    path("listing/<str:title>", views.listing, name="listing"),
    path("categories", views.categories, name="categories"),
    path("viewCategory/<str:category>", views.viewCategory, name="viewCategory"),
    path("watchlist", views.watchlist, name="watchlist"),
    path("addWatchlist/<str:title>", views.addWatchlist, name="addWatchlist"),
    path("deletewatchlist/<str:title>", views.deletewatchlist, name = "deletewatchlist"),
    path("bid/<str:title>", views.bid, name="bid"),
    path("closed", views.closed, name="closed"),
    path("close/<str:title>", views.close, name="close"),
    path("createListing", views.createListing, name="createListing")
]
