Spaces:
Build error
Build error
File size: 406 Bytes
0827183 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Bot app with Flask routing."""
from flask import Response
from .bot_app import BotApp
APP = BotApp()
@APP.flask.route("/api/messages", methods=["POST"])
def messages() -> Response:
return APP.messages()
@APP.flask.route("/api/test", methods=["GET"])
def test() -> Response:
return APP.test()
|