Commit f1d86cc5 authored by Ale's avatar Ale

fix: Update webhook URLs

parent b872ff1c
......@@ -12,6 +12,6 @@ urlpatterns = [
path(
'telegram',
csrf_exempt( views.TelegramWebhookView.as_view() ),
name='telegram_webhook'
name='telegram'
),
]
"""patio108 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
# django
from django.contrib import admin
from django.urls import path
......@@ -22,6 +6,7 @@ from django.views.generic import TemplateView
from django.conf.urls.static import static
# project
from django.conf import settings
from apps.connectors import urls as webhooks
urlpatterns = [
# admin
......@@ -43,6 +28,14 @@ urlpatterns = [
),
name="map"
),
# webhooks
path(
'webhooks/',
include(
webhooks,
namespace="webhooks"
)
)
]
# Add static URLS when running a standalone server through manage.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment