2015-01-26 12:06:03 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for user database views.
|
|
|
|
|
|
|
|
"""
|
2023-02-18 22:46:48 +01:00
|
|
|
from __future__ import absolute_import
|
2015-01-26 12:06:03 +01:00
|
|
|
|
2023-02-18 22:46:48 +01:00
|
|
|
from django.urls import re_path
|
2015-01-26 12:06:03 +01:00
|
|
|
|
2023-02-18 22:46:48 +01:00
|
|
|
from .views import AddUserDatabase, ChangeDatabaseUserPassword, DeleteUserDatabase
|
2015-01-26 12:06:03 +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+)/create$", AddUserDatabase.as_view(), name="add_userdatabase"
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/(?P<slug>[\w0-9]+)/setpassword",
|
|
|
|
ChangeDatabaseUserPassword.as_view(),
|
|
|
|
name="change_dbuser_password",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/(?P<slug>[\w0-9]+)/delete",
|
|
|
|
DeleteUserDatabase.as_view(),
|
|
|
|
name="delete_userdatabase",
|
|
|
|
),
|
2015-12-19 20:11:23 +01:00
|
|
|
]
|