Jan Dittberner
4af1a39ca4
- update dependencies - fix deprecation warnings - fix tests - skip some tests that need more work - reformat changed code with isort and black
22 lines
506 B
Python
22 lines
506 B
Python
"""
|
|
This module defines the URL patterns for website related views.
|
|
|
|
"""
|
|
from __future__ import absolute_import
|
|
|
|
from django.urls import re_path
|
|
|
|
from .views import AddWebsite, DeleteWebsite
|
|
|
|
urlpatterns = [
|
|
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",
|
|
),
|
|
]
|