[fix] this arg should be in the decorator

This commit is contained in:
Laurent Peuch 2018-07-13 07:33:34 +02:00
parent d40beab8b2
commit baf7a96d01

4
run.py
View file

@ -174,8 +174,8 @@ async def api_jobs(request):
return response.json(map(model_to_dict, Job.select()))
@app.route("/api/jobs")
async def api_new_job(request, methods=['POST']):
@app.route("/api/jobs", methods=['POST'])
async def api_new_job(request):
# TODO auth or some kind
# test type ?