from django.urls import path
from oneWordStory import views

app_name = 'oneWordStory'


urlpatterns = [
    path('', views.home, name='home'),
    path('story/add_story/', views.add_story, name='add_story'),
    path('account/register/', views.register, name='register'),
    path('account/login/', views.user_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('story/<slug:story_name_slug>/', views.show_story, name='show_story'),
    path('like_story/', views.LikeStoryView.as_view(), name='like_story'),
    path('search', views.search, name='search'),
]
