from flask import Flask,request
app = Flask(name)
colors=['blue','white','red'] @app.route('/colors/<any(%s):color>' % str(colors)[1:-1]) def ca(color): return color
if name == 'main': app.run( host='0.0.0.0', port=8888, debug=True )
from flask import Flask,request
app = Flask(name)
colors=['blue','white','red'] @app.route('/colors/<any(%s):color>' % str(colors)[1:-1]) def ca(color): return color
if name == 'main': app.run( host='0.0.0.0', port=8888, debug=True )