add upload api endpoint

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2026-03-09 16:02:05 +01:00
parent 9fa6304cbc
commit 20e8b8ab18
6 changed files with 93 additions and 7 deletions
+4
View File
@@ -125,6 +125,10 @@ class Api:
from modules.civitai import api_civitai
api_civitai.register_api()
# upload api
from modules.api import upload
upload.register_api()
def add_api_route(self, path: str, fn, auth: bool = True, **kwargs):
if auth and self.credentials:
deps = list(kwargs.get('dependencies', []))