File: urls.py

package info (click to toggle)
freedombox 26.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,092 kB
  • sloc: python: 48,542; javascript: 1,730; xml: 481; makefile: 290; sh: 137; php: 32
file content (21 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
URLs for the Let's Encrypt module.
"""

from django.urls import re_path

from . import views

urlpatterns = [
    re_path(r'^sys/letsencrypt/$', views.LetsEncryptAppView.as_view(),
            name='index'),
    re_path(r'^sys/letsencrypt/obtain/(?P<domain>[^/]+)/$', views.obtain,
            name='obtain'),
    re_path(r'^sys/letsencrypt/re-obtain/(?P<domain>[^/]+)/$', views.reobtain,
            name='re-obtain'),
    re_path(r'^sys/letsencrypt/revoke/(?P<domain>[^/]+)/$', views.revoke,
            name='revoke'),
    re_path(r'^sys/letsencrypt/delete/(?P<domain>[^/]+)/$', views.delete,
            name='delete'),
]