from django.urls import path
from . import views

urlpatterns = [

    ######## Display Routes #########
    path('', views.index),
    path('dashboard', views.display_dashboard),
    path('trip/new', views.display_make_new_trip),
    path('trip/detail/<int:id>', views.display_trip_details),
    path('trip/update/<int:id>', views.display_update_trip),
    path('trail/detail/<int:id>', views.display_trail_details),
    # path('test', views.test),

    ######## Action Routes #########
    path('register', views.register),
    path('login', views.login),
    path('logout', views.logout),
    path('update/<int:id>', views.update_trip),
    path('create', views.create),
    path('cancel/<int:id>', views.cancel),
    path('join/<int:id>', views.join),
    path('post_comment/<int:id>', views.post_comment),
    path('trip/delete/<int:id>', views.delete_trip),

#### careful delete alls
    path('delete_all/<int:id>', views.delete_all),
    path('delete_all_trails', views.delete_all_trails),

    ######## Admin Routes #########
    # path('edit/<int:id>', views.update_trail),
    path('new_trail', views.display_make_new_trail),
    path('create_trail', views.create_trail),
    path('delete_trail/<int:id>', views.delete_trail),

]