diff --git a/back/backend/main.py b/back/backend/main.py index 2d830a0..801ad82 100644 --- a/back/backend/main.py +++ b/back/backend/main.py @@ -15,7 +15,7 @@ origins = [ ] app.include_router(routes.router, prefix="/api") -app.include_router(ws_router, prefix="") +app.include_router(ws_router, prefix="/ws") app.add_middleware( diff --git a/front/src/utils/api.js b/front/src/utils/api.js index cd7b169..94176d0 100644 --- a/front/src/utils/api.js +++ b/front/src/utils/api.js @@ -5,7 +5,7 @@ const URL = process.env.NODE_ENV == 'development'? '127.0.0.1:8000': '10.252.44. // '172.16.200.33:8000':'10.252.44.28' const baseURL = `http://${URL}/api/`; -const wsURL = `ws://${URL}` +const wsURL = `ws://${URL}/ws/` const axiosClear = axios.create({ baseURL,