INNER CODE UNIT · Python

index

Nour833/StegoForge · web/app.py:233

    def index():
        return render_template("index.html", initial_tab="encode")

    @app.route("/survive")
    def survive_page():
        return render_template("index.html", initial_tab="survive")

    @app.route("/artifact")
    def artifact_file():
        p = request.args.get("path", "")
        if not p:
            return jsonify({"error": "Missing path"}), 400
        artifact = Path(p)
        if not _artifact_allowed(artifact):
            return jsonify({"error": "Artifact not found"}), 404
        return send_file(str(artifact), as_attachment=False)

    @app.route("/api/platform-profiles", methods=["GET"])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…