from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.index),
    url(r'^home$', views.home),
    url(r'^(?P<id>\d+)/tolibrary$', views.addSongYourMusic),
    url(r'^(?P<songid>\d+)/toplaylist/$', views.addtoplaylist),
    url(r'^(?P<songid>\d+)/toplaylist/add$', views.addtoplaylistPage),
    url(r'^(?P<songid>\d+)/player$', views.player),
    url(r'^(?P<artist>\w+)/page$', views.artist),
    url(r'^search$', views.searchPage),
    url(r'^search_results', views.searchResult),
    url(r'^newplaylist', views.newplaylist),
    url(r'^playlists$', views.playlists),
    url(r'^upload$', views.uploadpage),
    url(r'^checkfile$', views.checkfile)
]