summaryrefslogtreecommitdiff
path: root/pgmailmgr/urls.py
blob: e62069b272abb4ba47143cf7946dcbef4763b5c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from django.urls import re_path

import pgmailmgr.mailmgr.views as views
import pgmailmgr.auth

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = [
    re_path(r'^$', views.home),
    re_path(r'^noaccess/$', views.noaccess),
    re_path(r'^(\d+)/$', views.mailbox),
    re_path(r'^adm/$', views.adm_home),
    re_path(r'^adm/user/(\d+|add)/$', views.userform),
    re_path(r'^adm/forwarder/(\d+|add)/$', views.forwarderform),
    re_path(r'^adm/forwarder/(\d+)/delete/$', views.deleteforwarder),

    # Auth
    re_path('^auth_receive/$', pgmailmgr.auth.auth_receive),
    re_path('^auth_api/$', pgmailmgr.auth.auth_api),
    re_path('^accounts/logout/$', pgmailmgr.auth.logout),
    re_path('^accounts/login/$', pgmailmgr.auth.login),

    # Uncomment the next line to enable the admin:
    re_path(r'^adm/admin/', admin.site.urls),
]