from django.urls import path

from . import views

urlpatterns = [
    # path('', views.index, name='index'),
    path('user/', views.user, name='user'),
    path('user/<str:email>', views.user_details, name='user_details'),
    path('taxi/<str:email>', views.taxi_details, name='taxi_details'),
    path('userTaxiTrips/<str:email>', views.get_user_taxi_trips, name='user_taxi_trips'),
    path('taxiTaxiTrips/<str:email>', views.get_taxi_taxi_trips, name='taxi_taxi_trips'),
    path('createTaxiTrip/', views.create_taxi_trip, name='create_taxi_trip'),
    path('busTrip/', views.post_bus_trip, name='post_bus_trip'),
    path('busTrip/<int:id>', views.get_bus_trip, name='get_bus_trip'),
    path('randomBusTrip/', views.get_random_bus_trip, name='get_random_bus_trip'),
    path('userLogin/', views.user_login, name='user_login'),
    path('taxiLogin/', views.taxi_login, name='taxi_login'),
    path('startTrip/', views.start_trip, name='start_trip'),
    path('cancelTrip/', views.cancel_trip, name='cancel_trip'),
    path('rateDriver/', views.rate_driver, name='rate_driver'),
    path('rateUser/', views.rate_user, name='rate_user'),
    path('getCurrentOrNext/<str:email>', views.get_user_current_or_next_trip,
         name='get_user_current_or_next_trip'),
    path('getTaxiCurrentOrNext/<str:email>', views.get_taxi_current_or_next_trip,
         name='get_taxi_current_or_next_trip'),
    path('getUserBusTrips/<int:bus_trip_id>/<str:email>',
         views.get_bus_email_trips, name='get_bus_email_trips'),
    path('updateTaxiTripLocation/', views.update_taxi_trip_location, name='update_taxi_trip_location'),
]
