add barebones dispatch command

This commit is contained in:
Prunebutt 2025-09-26 00:28:32 +02:00
parent f672c6c706
commit 8542ea2ef7

View file

@ -29,6 +29,15 @@ def scan():
@app.route("/dispatch")
def dispatch():
command = ["bash", f"{os.getcwd()}/scanbuddy.bash", "dispatch"]
user = request.args.get("user", "")
result = subprocess.run(command, stdout=subprocess.PIPE, text=True)
output = result.stdout.strip()
print("Scanbuddy output: ")
print(output)
return "Dispatching..."
@app.route("/unscan")