aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-04 11:44:11 +0000
committerGitHub <noreply@github.com>2023-01-04 11:44:11 +0000
commitc4796bcc679c145b9cd53011c2a45c95b0ddabfa (patch)
treeee171ace3541bff5a1ad0a51200257989df4fee8
parent0cd6399b8b1699b8b7acad6f0ad2988111fe618e (diff)
parent11b8160a086c434d5baf4971edda46e6d2126800 (diff)
downloadstable-diffusion-webui-gfx803-c4796bcc679c145b9cd53011c2a45c95b0ddabfa.tar.gz
stable-diffusion-webui-gfx803-c4796bcc679c145b9cd53011c2a45c95b0ddabfa.tar.bz2
stable-diffusion-webui-gfx803-c4796bcc679c145b9cd53011c2a45c95b0ddabfa.zip
Merge pull request #6302 from vladmandic/fix-api-logging
fix typo in api logging
-rw-r--r--modules/api/api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 6267afdc..48a70a44 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -101,6 +101,7 @@ class Api:
self.router = APIRouter()
self.app = app
self.queue_lock = queue_lock
+ api_middleware(self.app)
self.add_api_route("/sdapi/v1/txt2img", self.text2imgapi, methods=["POST"], response_model=TextToImageResponse)
self.add_api_route("/sdapi/v1/img2img", self.img2imgapi, methods=["POST"], response_model=ImageToImageResponse)
self.add_api_route("/sdapi/v1/extra-single-image", self.extras_single_image_api, methods=["POST"], response_model=ExtrasSingleImageResponse)