telegram_bots/config/urls.py

13 lines
420 B
Python
Raw Normal View History

2019-01-11 19:16:01 +00:00
from django.contrib import admin
from django.urls import path, include
from django.views.generic import RedirectView
2019-11-12 17:13:56 +00:00
from bots.views import BotRPCView
2019-01-11 19:16:01 +00:00
urlpatterns = [
path('', RedirectView.as_view(pattern_name='cabinet:index')),
2019-01-19 06:52:00 +00:00
path('config/', admin.site.urls),
2019-01-11 19:16:01 +00:00
path('cabinet/', include('cabinet.urls', namespace='cabinet')),
2019-11-12 17:13:56 +00:00
path('bots_rpc/<str:endpoint>/', BotRPCView.as_view(), name='bots_rpc'),
2019-01-11 19:16:01 +00:00
]