Allow configuring aggregator connections
This commit is contained in:
24
app/urls.py
24
app/urls.py
@@ -20,7 +20,7 @@ from django.contrib.auth.views import LogoutView
|
||||
from django.urls import include, path
|
||||
from two_factor.urls import urlpatterns as tf_urls
|
||||
|
||||
from core.views import base, notifications
|
||||
from core.views import aggregators, base, notifications
|
||||
|
||||
# from core.views.stripe_callbacks import Callback
|
||||
|
||||
@@ -32,9 +32,31 @@ urlpatterns = [
|
||||
path("", include(tf_urls)),
|
||||
path("accounts/signup/", base.Signup.as_view(), name="signup"),
|
||||
path("accounts/logout/", LogoutView.as_view(), name="logout"),
|
||||
# Notifications
|
||||
path(
|
||||
"notifications/<str:type>/update/",
|
||||
notifications.NotificationsUpdate.as_view(),
|
||||
name="notifications_update",
|
||||
),
|
||||
# Aggregators
|
||||
path(
|
||||
"aggs/<str:type>/",
|
||||
aggregators.AggregatorList.as_view(),
|
||||
name="aggregators",
|
||||
),
|
||||
path(
|
||||
"aggs/<str:type>/create/",
|
||||
aggregators.AggregatorCreate.as_view(),
|
||||
name="aggregator_create",
|
||||
),
|
||||
path(
|
||||
"aggs/<str:type>/update/<str:pk>/",
|
||||
aggregators.AggregatorUpdate.as_view(),
|
||||
name="aggregator_update",
|
||||
),
|
||||
path(
|
||||
"aggs/<str:type>/delete/<str:pk>/",
|
||||
aggregators.AggregatorDelete.as_view(),
|
||||
name="aggregator_delete",
|
||||
),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user