wip
This commit is contained in:
parent
a597347dc0
commit
4502c16760
1 changed files with 5 additions and 3 deletions
|
@ -3,11 +3,13 @@
|
|||
from os import environ
|
||||
from flask import Flask, request
|
||||
from subprocess import check_output
|
||||
import json
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/<strategy>', methods=['POST'])
|
||||
def build(strategy):
|
||||
app.logger.info(str(request.get_json()))
|
||||
print(strategy, request.get_json())
|
||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", request.get_json()])
|
||||
json = json.dumps(request.get_json())
|
||||
app.logger.info(json)
|
||||
print(strategy, json)
|
||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", json])
|
||||
|
|
Loading…
Reference in a new issue