from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^accounts/login/$', views.login),
    url(r'^accounts/logout/$', views.logout),
    url(r'^accounts/signup/$', views.signup),
    url(r'^accounts/getinfo/$', views.getinfo),
    url(r'^accounts/deactive/$', views.deactive_user),
    url(r'^accounts/sign/$', views.sign),
    url(r'^profile/(?P<username>.*)/$', views.profile),
    url(r'^questions/(?P<question_id>.*)/$', views.question),
    url(r'^question/create/$', views.new_question),
    url(r'^question/delete/$', views.delete_question),
    url(r'^vote/create/$', views.vote),
    url(r'^settings/$', views.settings),
    url(r'^answers/create/(?P<question_id>.*)/$', views.new_answer),
    url(r'^answers/delete/', views.delete_answer),
    url(r'^chat/(?P<username>.*)/$', views.chat),
    url(r'^follow/$', views.follow),
    url(r'^discover/$', views.discover),
    url(r'^search/$', views.search),
    url(r'^upload/$', views.upload),
    url(r'^index_feeds/$', views.index_feeds),
    url(r'^socket_api/$', views.socket_api),
    url(r'^comments/(?P<answer_id>.*)/$', views.comment),
    url(r'^comment/create/$', views.new_comment),
]
