From c4f8491cafe7aac8e6971b80b087e587319e558e Mon Sep 17 00:00:00 2001 From: Serhii Ofii <132130496+SnowGlowedMountain@users.noreply.github.com> Date: Sat, 19 Oct 2024 01:05:31 +0300 Subject: [PATCH] Serhii milestone 2 fix (#54) * chores_lint_errors_and_path_issues * feature_db_py * fix_audio_issue * chores_lint_error * fix_openAPI_switching * chore_module_insert * fix_edit_collection_fix * fix_frontend_critical_update * fix_feedback2_translation_async * chore:lint * chore:loading_issue * chore:module * chore:version-python-socketio[asgi] * chore:main.py --- linguaphoto/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linguaphoto/main.py b/linguaphoto/main.py index f824615..ce596f6 100644 --- a/linguaphoto/main.py +++ b/linguaphoto/main.py @@ -3,6 +3,7 @@ import uvicorn from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware +import socketio from linguaphoto.api.api import router from linguaphoto.socket import sio # Import the `sio` and `notify_user` from socket.py @@ -20,6 +21,7 @@ app.include_router(router, prefix="") +app.mount("/", socketio.ASGIApp(sio, other_asgi_app=app)) if __name__ == "__main__": print("Starting webserver...") uvicorn.run(app, port=8080, host="0.0.0.0")