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.route('/', methods = ['GET'])
|
||||
def build():
|
||||
strategy = request.args['strategy']
|
||||
print(strategy, request.data)
|
||||
@app.route('/<strategy>', methods=['POST'])
|
||||
def build(strategy):
|
||||
app.logger.info(str(request.data))
|
||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", request.data])
|
||||
|
|
Loading…
Reference in a new issue