# Authors: Gonçalo Marques; Ricardo Vieira
# Latest change: 29/01/2022

from django.urls import path
from .views.index import index
from .views.client import account, logIn, signUp, logOut
from .views.car import newCars, usedCars, myCars, buyCar, sellCar

urlpatterns = [
    # index
    path("", index, name="index"),
    # client
    path("account/", account, name="account"),
    path("logIn/", logIn, name="logIn"),
    path("signUp/", signUp, name="signUp"),
    path("logOut/", logOut, name="logOut"),
    # car
    path("newCars/", newCars, name="newCars"),
    path("usedCars/", usedCars, name="usedCars"),
    path("myCars/", myCars, name="myCars"),
    path("buyCar/<int:pkCar>/", buyCar, name="buyCar"),
    path("sellCar/<int:pkCar>/", sellCar, name="sellCar"),
]
