30 lines
589 B
Python
30 lines
589 B
Python
from django.conf.urls import patterns, url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
|
|
# Auth
|
|
url(r'^login/$',
|
|
views.UserLoginView.as_view(),
|
|
name='user_login'),
|
|
|
|
url(r'^logout/$',
|
|
views.UserLogoutView.as_view(),
|
|
name='user_logout'),
|
|
|
|
url(r'^whoami/$',
|
|
views.WhoAmIView.as_view(),
|
|
name='user_whoami'),
|
|
|
|
# PDF
|
|
url(r'^print/$',
|
|
views.UsersListPDF.as_view(),
|
|
name='user_listpdf'),
|
|
|
|
url(r'^passwords/print/$',
|
|
views.UsersPasswordsPDF.as_view(),
|
|
name='user_passwordspdf'),
|
|
)
|