HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/thread-self/root/home/arjun/projects/buyercall/buyercall/blueprints/channels/urls.py
from buyercall.blueprints.channels.endpoints import *

channels_api.add_url_rule("/", view_func=get_channels)
channels_api.add_url_rule("/", view_func=create_channels, methods=['POST'])
channels_api.add_url_rule("/meta", view_func=get_channel_type_count)
channels_api.add_url_rule("/<uuid:cid>", view_func=get_channel_by_id)
channels_api.add_url_rule("/<uuid:cid>", view_func=update_channel, methods=['POST', 'PUT'])
channels_api.add_url_rule("/types", view_func=ChannelTypeApi.as_view('list_channel_types'), methods=['GET', 'POST'])
channels_api.add_url_rule("/types/<uuid:channel_type_id>",
                          view_func=ChannelTypeApi.as_view('channel_type_detail'), methods=['GET', 'PUT'])
channels_api.add_url_rule("/type/<string:channel_type>", view_func=get_channels_by_type, methods=['GET'])
channels_api.add_url_rule("/email/checkisvalid/<string:email_prefix>", view_func=is_email_valid, methods=['GET'])