docker学习仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
345 B

from flask import Flask, render_template
import json
app = Flask(__name__)
@app.route('/book')
def json_file():
file = open('volume_data/book.json')
json_data = json.load(file)
return json_data
@app.route('/')
def home():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=3000)