diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6b7c0d1..f1c41ef 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -14,7 +14,7 @@ import LoginPage from "pages/Login"; import NotFound from "pages/NotFound"; import SubscriptionTypePage from "pages/SubscriptioinType"; import SubscriptionCancelPage from "pages/Subscription"; -import PrivateRoute from "ProtectedRoute"; +import PrivateRoute from "PrivateRoute"; import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; import "./App.css"; diff --git a/frontend/src/ProtectedRoute.tsx b/frontend/src/PrivateRoute.tsx similarity index 100% rename from frontend/src/ProtectedRoute.tsx rename to frontend/src/PrivateRoute.tsx diff --git a/linguaphoto/main.py b/linguaphoto/main.py index 6650254..6673296 100644 --- a/linguaphoto/main.py +++ b/linguaphoto/main.py @@ -23,8 +23,8 @@ ) app.include_router(router, prefix="") +app = socketio.ASGIApp(sio, app) -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") diff --git a/linguaphoto/requirements.txt b/linguaphoto/requirements.txt index f968e98..0bde136 100644 --- a/linguaphoto/requirements.txt +++ b/linguaphoto/requirements.txt @@ -41,4 +41,3 @@ openai requests stripe python-socketio - diff --git a/linguaphoto/socket_manager.py b/linguaphoto/socket_manager.py index be5ae46..06880a5 100644 --- a/linguaphoto/socket_manager.py +++ b/linguaphoto/socket_manager.py @@ -11,7 +11,6 @@ settings.homepage_url ], # Update this to match your frontend URL ) - # Dictionary to store connected users by their socket ID connected_users: dict[str, str] = {}