from django.contrib import admin
from django.urls import path

from authentication import views as Auth
from trips import views as Trips
from vehicles import views as Vehicles
from user_vehicles import views as UserVehicles

urlpatterns = [
    
    path('request-otp', Auth.requestOtp, name="requestOtp"),
    path('verify-otp', Auth.verifyOtp, name="verifyOtp"),
    path('verify-user', Auth.verifyUser, name="verifyUser"),
    path('profile', Auth.profile, name="profile"),

    path('delete-account', Auth.deleteAccount, name="deleteAccount"),
    path('show-delete', Auth.showDelete, name='showDelete'),

    path('trip', Trips.Trip.as_view(), name="trip"),
    path('trip/<int:id>', Trips.EditTrip.as_view(), name="editTrip"),
    path('trip/cancel', Trips.CancelTrip.as_view(), name="cancelTrip"),
    path('trips', Trips.TripList.as_view(), name="trips"),
    path('calculate-fare', Trips.calculateFare, name="calculateFare"),
    path('payment-handler', Trips.paymentHandler, name="paymentHandler"),

    path('vehicle-types', Vehicles.vehicleTypes, name="vehicleTypes"),
    path('vehicle-models', Vehicles.vehicleModels, name="vehicleModels"),
    path('vehicle-transmission-types', Vehicles.transmissionTypes, name="transmissionTypes"),

    path('vehicles', UserVehicles.Vehicles.as_view(), name="vehicles"),
    path('vehicle/set-default', UserVehicles.VehicleDefault.as_view(), name="vehicleDefault"),
    path('vehicle/delete', UserVehicles.VehicleDelete.as_view(), name="VehicleDelete"),

]
