# -*- encoding: utf-8 -*-

from django.conf.urls import url

from apps.frontpage.views import PackageProfileView
from .views import HomepageView, LoginView, SignupView, LogoutView

urlpatterns = [
    url(r'^$', HomepageView.as_view(), name="homepage"),
    url(r'^auth/login', LoginView.as_view(), name='login'),
    url(r'^auth/signup', SignupView.as_view(), name='signup'),
    url(r'^auth/logout', LogoutView.as_view(), name="logout"),
    url(r'^profile/(?P<username>[\w_-]{3,255})/'
        r'(?P<package_name>[\w_-]{3,255})',
        PackageProfileView.as_view(),
        name="package_profile")
]
