from django.urls import path
from . import views

urlpatterns = [
    path('', views.BlogListView.as_view(), name='home'),
    path('post/<int:pk>/', views.BlogDetailView.as_view(), name='post_detail'),
    path('post/new/', views.BlogCreateView.as_view(), name='post_new'),
    path('post/<int:pk>/edit/', views.BlogUpdateView.as_view(), name='post_edit'),
    path('vote/<int:pk>', views.increment_counter, name='increment'),
    path('donate/<int:pk>', views.increment_money, name='tip'),
    path('confirm/<int:pk>', views.confirm, name='confirm'),
]
