MCPcopy
hub / github.com/lektor/lektor / trigger_clean

Function trigger_clean

lektor/admin/modules/api.py:335–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333
334@bp.route("/clean", methods=["POST"])
335def trigger_clean():
336 builder = current_app.lektor_info.get_builder()
337 builder.prune(all=True)
338 builder.touch_site_config()
339 return jsonify(okay=True)
340
341
342@bp.route("/publish")

Callers

nothing calls this directly

Calls 3

get_builderMethod · 0.80
pruneMethod · 0.80
touch_site_configMethod · 0.80

Tested by

no test coverage detected