示例#1
0
def handle_stream_post():
    # workaround https://github.com/mitsuhiko/flask/issues/367
    if request.method == "POST":
        path = request.path[:9]
        if path == "channel":
            return ChannelApi.post(ChannelApi.PREFIX)
        elif path == "/log/":
            return LogsApi.post(LogsApi.PREFIX)