mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] this arg should be in the decorator
This commit is contained in:
parent
d40beab8b2
commit
baf7a96d01
1 changed files with 2 additions and 2 deletions
4
run.py
4
run.py
|
@ -174,8 +174,8 @@ async def api_jobs(request):
|
||||||
return response.json(map(model_to_dict, Job.select()))
|
return response.json(map(model_to_dict, Job.select()))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/api/jobs")
|
@app.route("/api/jobs", methods=['POST'])
|
||||||
async def api_new_job(request, methods=['POST']):
|
async def api_new_job(request):
|
||||||
# TODO auth or some kind
|
# TODO auth or some kind
|
||||||
|
|
||||||
# test type ?
|
# test type ?
|
||||||
|
|
Loading…
Add table
Reference in a new issue