diff options
author | Ryan Voots <simcop2387@simcop2387.info> | 2022-10-17 16:50:45 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-18 05:44:50 +0000 |
commit | 247aeb3aaaf2925c7d68a9cf47c975f3e6d3dd33 (patch) | |
tree | fcf657b091c34a638ebec88a042c692bdd5daa52 | |
parent | c3851a853d99ad35ccedcdd8dbeb6cfbe273439b (diff) | |
download | stable-diffusion-webui-gfx803-247aeb3aaaf2925c7d68a9cf47c975f3e6d3dd33.tar.gz stable-diffusion-webui-gfx803-247aeb3aaaf2925c7d68a9cf47c975f3e6d3dd33.tar.bz2 stable-diffusion-webui-gfx803-247aeb3aaaf2925c7d68a9cf47c975f3e6d3dd33.zip |
Put API under /sdapi/ so that routing is simpler in the future. This means that one could allow access to /sdapi/ but not the webui.
-rw-r--r-- | modules/api/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 8781cd86..14613d8c 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -18,7 +18,7 @@ class TextToImageResponse(BaseModel): class Api: def __init__(self, app): self.router = APIRouter() - app.add_api_route("/v1/txt2img", self.text2imgapi, methods=["POST"]) + app.add_api_route("/sdapi/v1/txt2img", self.text2imgapi, methods=["POST"]) def text2imgapi(self, txt2imgreq: StableDiffusionProcessingAPI ): populate = txt2imgreq.copy(update={ # Override __init__ params |