telegram_bots/bots/urls.py

13 lines
432 B
Python
Raw Normal View History

2019-11-12 17:13:56 +00:00
from django.urls import path
from bots.views import BotListView, BotConfigEditView, BotConfigDeleteView, BotConfigCreateView
app_name = 'bots'
urlpatterns = [
path('', BotListView.as_view(), name='index'),
path('<int:pk>/', BotConfigEditView.as_view(), name='edit'),
path('new/<content_type>/', BotConfigCreateView.as_view(), name='new'),
path('delete/<int:pk>/', BotConfigDeleteView.as_view(), name='delete'),
]