aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Voots <simcop2387@simcop2387.info>2022-10-17 12:50:45 -0400
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-18 08:44:50 +0300
commit247aeb3aaaf2925c7d68a9cf47c975f3e6d3dd33 (patch)
treefcf657b091c34a638ebec88a042c692bdd5daa52
parentc3851a853d99ad35ccedcdd8dbeb6cfbe273439b (diff)
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.py2
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