# coding: utf-8
from flask import Flask, views, jsonify, request
from flask_cors import CORS
app = Flask(__name__)
CORS(app, resources=r'/ *')
class OTCHuoBi(views.MethodView):
def get(self):
return jsonify([])
app.add_url_rule("/otc", view_func=OTCHuoBi.as_view(name="OTCHuoBi"), methods=['GET'])
if __name__ == '__main__':
app.run("0.0.0.0", 6688, threaded=True)
# app.run("0.0.0.0", 6688, threaded=True, processes=3)
Copy the code