<reponame>RaenonX/Jelly-Bot-API<filename>JellyBot/views/info/urls.py<gh_stars>1-10
from django.urls import path

from .channel import ChannelInfoView, ChannelInfoSearchView
from .chcoll import ChannelCollectionInfoView
from .profile import ProfileInfoView
from .msgstats import ChannelMessageStatsView
from .botstats import ChannelBotUsageStatsView
from .recent import RecentMessagesView


urlpatterns = [
    path('channel/', ChannelInfoSearchView.as_view(), name="info.channel.search"),
    path('channel/<str:channel_oid>/', ChannelInfoView.as_view(), name="info.channel"),
    path('channel/<str:channel_oid>/msgstats/', ChannelMessageStatsView.as_view(), name="info.channel.msgstats"),
    path('channel/<str:channel_oid>/botstats/', ChannelBotUsageStatsView.as_view(), name="info.channel.botstats"),
    path('channel/<str:channel_oid>/recent/message', RecentMessagesView.as_view(), name="info.channel.recent.message"),
    path('chcoll/<str:chcoll_oid>/', ChannelCollectionInfoView.as_view(), name="info.chcoll"),
    path('profile/<str:profile_oid>/', ProfileInfoView.as_view(), name="info.profile"),
]

from django.urls import path

from .channel import ChannelInfoView, ChannelInfoSearchView
from .chcoll import ChannelCollectionInfoView
from .profile import ProfileInfoView
from .msgstats import ChannelMessageStatsView
from .botstats import ChannelBotUsageStatsView
from .recent import RecentMessagesView


urlpatterns = [
    path('channel/', ChannelInfoSearchView.as_view(), name="info.channel.search"),
    path('channel/<str:channel_oid>/', ChannelInfoView.as_view(), name="info.channel"),
    path('channel/<str:channel_oid>/msgstats/', ChannelMessageStatsView.as_view(), name="info.channel.msgstats"),
    path('channel/<str:channel_oid>/botstats/', ChannelBotUsageStatsView.as_view(), name="info.channel.botstats"),
    path('channel/<str:channel_oid>/recent/message', RecentMessagesView.as_view(), name="info.channel.recent.message"),
    path('chcoll/<str:chcoll_oid>/', ChannelCollectionInfoView.as_view(), name="info.chcoll"),
    path('profile/<str:profile_oid>/', ProfileInfoView.as_view(), name="info.profile"),
]