2015-01-26 22:47:49 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for website related views.
|
|
|
|
|
|
|
|
"""
|
2023-02-18 22:46:48 +01:00
|
|
|
from __future__ import absolute_import
|
2015-01-26 22:47:49 +01:00
|
|
|
|
2023-02-18 22:46:48 +01:00
|
|
|
from django.urls import re_path
|
2015-01-26 22:47:49 +01:00
|
|
|
|
2023-02-18 22:46:48 +01:00
|
|
|
from .views import AddWebsite, DeleteWebsite
|
2015-01-26 22:47:49 +01:00
|
|
|
|
2015-12-19 20:11:23 +01:00
|
|
|
urlpatterns = [
|
2023-02-18 22:46:48 +01:00
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/(?P<domain>[\w0-9.-]+)/create$",
|
|
|
|
AddWebsite.as_view(),
|
|
|
|
name="add_website",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/(?P<domain>[\w0-9.-]+)/(?P<pk>\d+)/delete$",
|
|
|
|
DeleteWebsite.as_view(),
|
|
|
|
name="delete_website",
|
|
|
|
),
|
2015-12-19 20:11:23 +01:00
|
|
|
]
|