def update_index():
if not safe_str_cmp(request.form.get('secret', ''),
current_app.config['SEARCH_INDEX_SECRET']):
abort(403)
index_path = get_index_path()
put_index(index_path, request.files['archive'])
return jsonify(okay=True)
评论列表
文章目录