875ed28b58
初始上传
13 lines
286 B
Python
13 lines
286 B
Python
from flask import Flask
|
|
from flask_cors import CORS
|
|
from gevent import pywsgi
|
|
|
|
app = Flask("test_server")
|
|
CORS(app, supports_credentials=True)
|
|
|
|
@app.route('/', methods=['get'])
|
|
def abc():
|
|
return 'hello world'
|
|
|
|
server = pywsgi.WSGIServer(('0.0.0.0',5000), app)
|
|
server.serve_forever() |