return absolute paths on api endpoint
This commit is contained in:
parent
cf7234f92b
commit
20a1058fcc
|
@ -95,8 +95,8 @@ def generate_api():
|
||||||
return {"text": f"Generation of seed {gen.id} started successfully.",
|
return {"text": f"Generation of seed {gen.id} started successfully.",
|
||||||
"detail": gen.id,
|
"detail": gen.id,
|
||||||
"encoded": app.url_map.converters["suuid"].to_url(None, gen.id),
|
"encoded": app.url_map.converters["suuid"].to_url(None, gen.id),
|
||||||
"wait_api_url": url_for("wait_seed_api", seed=gen.id),
|
"wait_api_url": url_for("wait_seed_api", seed=gen.id, _external=True),
|
||||||
"url": url_for("wait_seed", seed=gen.id)}, 201
|
"url": url_for("wait_seed", seed=gen.id, _external=True)}, 201
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return {"text": "Uncaught Exception:" + str(e)}, 500
|
return {"text": "Uncaught Exception:" + str(e)}, 500
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue