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

app_name = 'music'

urlpatterns = [
    #  /music/
    url(r'^$', views.index, name='index'),

    # /music/<album_id>
    # ^ caret represents the start
    # $ the end of the string
    # see video 12 thenewboston
    url(r'^(?P<album_id>[0-9]+)/$', views.detail, name='detail'),

    # /music/<album_id>/favorite/
    url(r'^(?P<album_id>[0-9]+)/$', views.detail, name='detail'),
]