wip
This commit is contained in:
parent
2802998afd
commit
a978ec8cfb
1 changed files with 3 additions and 4 deletions
|
@ -6,8 +6,7 @@ from subprocess import check_output
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route('/', methods = ['GET'])
|
@app.route('/<strategy>', methods=['POST'])
|
||||||
def build():
|
def build(strategy):
|
||||||
strategy = request.args['strategy']
|
app.logger.info(str(request.data))
|
||||||
print(strategy, request.data)
|
|
||||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", request.data])
|
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", request.data])
|
||||||
|
|
Loading…
Reference in a new issue