wip
This commit is contained in:
parent
2f52ad637e
commit
600d44a90f
1 changed files with 1 additions and 5 deletions
|
@ -2,15 +2,11 @@
|
|||
|
||||
from os import environ
|
||||
from flask import Flask, request
|
||||
from functools import cache
|
||||
from subprocess import check_output
|
||||
import json
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/', methods = ['GET'])
|
||||
def build():
|
||||
strategy = request.args['strategy']
|
||||
hook_data = request.get_json()
|
||||
print(json.dumps(hook_data, sort_keys=True, indent=4))
|
||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", json.dumps(hook_data)])
|
||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", request.data])
|
||||
|
|
Loading…
Reference in a new issue