14 lines
297 B
Python
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)
|