This repository has been archived on 2024-12-19. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-19/packages/flatpak/server.py

14 lines
297 B
Python

from flask import Flask, send_from_directory
app = Flask(__name__)
@app.route("/repo/<path:path>")
def static_dir(path):
return send_from_directory("repo", path)
if __name__ == "__main__":
"""Return the pathname of the directory."""
app.run(host="0.0.0.0", port=5000, debug=True)