INNER CODE UNIT · Python
index
stanfrbd/cyberbro · app.py:219
def index():
"""Render the index page."""
new_version_available: bool = check_for_new_version(app.config["VERSION"])
return render_template(
"index.html",
results=[],
API_PREFIX=API_PREFIX,
GUI_ENABLED_ENGINES=GUI_ENABLED_ENGINES,
new_version_available=new_version_available,
)
@app.route("/analyze", methods=["POST"])
def analyze() -> tuple[str, int]:
"""Handle the analyze request with caching and an option to ignore cache."""
form_data = ioc_fanger.fang(request.form.get("observables", ""))