68 lines
1.5 KiB
Python
68 lines
1.5 KiB
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'notifications'
|
|
|
|
urlpatterns = [
|
|
# Notification Settings
|
|
path(
|
|
'settings/',
|
|
views.notification_settings_view,
|
|
name='settings'
|
|
),
|
|
path(
|
|
'settings/<uuid:hospital_id>/',
|
|
views.notification_settings_view,
|
|
name='settings_with_hospital'
|
|
),
|
|
|
|
# Settings Update
|
|
path(
|
|
'settings/update/',
|
|
views.notification_settings_update,
|
|
name='settings_update'
|
|
),
|
|
path(
|
|
'settings/<uuid:hospital_id>/update/',
|
|
views.notification_settings_update,
|
|
name='settings_update_with_hospital'
|
|
),
|
|
|
|
# Quiet Hours
|
|
path(
|
|
'settings/quiet-hours/',
|
|
views.update_quiet_hours,
|
|
name='update_quiet_hours'
|
|
),
|
|
path(
|
|
'settings/<uuid:hospital_id>/quiet-hours/',
|
|
views.update_quiet_hours,
|
|
name='update_quiet_hours_with_hospital'
|
|
),
|
|
|
|
# Test Notification
|
|
path(
|
|
'settings/test/',
|
|
views.test_notification,
|
|
name='test_notification'
|
|
),
|
|
path(
|
|
'settings/<uuid:hospital_id>/test/',
|
|
views.test_notification,
|
|
name='test_notification_with_hospital'
|
|
),
|
|
|
|
# API
|
|
path(
|
|
'api/settings/',
|
|
views.notification_settings_api,
|
|
name='settings_api'
|
|
),
|
|
path(
|
|
'api/settings/<uuid:hospital_id>/',
|
|
views.notification_settings_api,
|
|
name='settings_api_with_hospital'
|
|
),
|
|
]
|