Merge branch 'master' of github.com:comfyanonymous/ComfyUI

This commit is contained in:
doctorpangloss
2024-09-23 12:50:31 -07:00
51 changed files with 51256 additions and 44712 deletions
@@ -1,10 +1,9 @@
import logging
from typing import Optional
from aiohttp import web
from ...services.file_service import FileService
from ....cmd.folder_paths import models_dir, user_directory, output_directory
from ....cmd.folder_paths import models_dir, user_directory, output_directory, folder_names_and_paths
class InternalRoutes:
@@ -41,6 +40,13 @@ class InternalRoutes:
# todo: applications really shouldn't serve logs like this
return web.json_response({})
@self.routes.get('/folder_paths')
async def get_folder_paths(request):
response = {}
for key in folder_names_and_paths:
response[key] = folder_names_and_paths[key][0]
return web.json_response(response)
def get_app(self):
if self._app is None:
self._app = web.Application()