From baf7a96d014edaa6602d51c219b41e06d63e0d66 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 13 Jul 2018 07:33:34 +0200 Subject: [PATCH] [fix] this arg should be in the decorator --- run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index a7a9f31..27829ac 100644 --- a/run.py +++ b/run.py @@ -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 ?