Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/api/server.py
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | |||||
@app.route('/check_config', methods=['POST']) | @app.route('/check_config', methods=['POST']) | ||||
@timed | @timed | ||||
def check_config(): | def check_config(): | ||||
return encode_data(get_storage().check_config(**decode_request(request))) | return encode_data(get_storage().check_config(**decode_request(request))) | ||||
@app.route('/reset', methods=['POST']) | |||||
@timed | |||||
def reset(): | |||||
return encode_data(get_storage().reset(**decode_request(request))) | |||||
@app.route('/content/missing', methods=['POST']) | @app.route('/content/missing', methods=['POST']) | ||||
@timed | @timed | ||||
def content_missing(): | def content_missing(): | ||||
return encode_data(get_storage().content_missing( | return encode_data(get_storage().content_missing( | ||||
**decode_request(request))) | **decode_request(request))) | ||||
@app.route('/content/missing/sha1', methods=['POST']) | @app.route('/content/missing/sha1', methods=['POST']) | ||||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |