from django.urls import path

from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('registration/', views.registration, name='registration'),
    path('posts/', views.posts, name='posts'),
    path('posts/create/', views.create_post, name='create_post'),
    path('posts/<int:post_id>/', views.post, name='post'),
    path('posts/<int:post_id>/comment/', views.create_comment, name='add_comment'),
    path('tags/', views.tags, name='tags'),
    path('tags/create/', views.create_tag, name='create_tag'),
    path('users/', views.users, name='users'),
    path('profile/', views.my_profile, name='my_profile'),
    path('profile/<str:username>/', views.profile, name='profile'),
    path('books/', views.books, name='books'),
    path('books/upload/', views.upload_book, name='upload_book'),
    path('books/<int:book_id>/', views.book, name='book'),
]
