Skip to content

Commit

Permalink
(#1) delete :: chat router 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
osangu committed Dec 2, 2022
1 parent 10f3295 commit 684027f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from app.utils.exception import initialize_exception_handler

from app.core.chat import initialize_socket, include_chat_router
from app.core.chat import initialize_socket

from app.core.user import include_user_router

Expand All @@ -25,7 +25,6 @@ def create_app():

# chat
initialize_socket(app)
include_chat_router(app)

# user router
include_user_router(app)
Expand Down
12 changes: 0 additions & 12 deletions app/core/chat/view.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
from fastapi import APIRouter

from app.config import SocketConfig
from app.core.chat import socket_manager

chat_router = APIRouter()


@chat_router.get('/chat/ports')
def get_socket_port():
return {
'port': SocketConfig.PORT
}


@socket_manager().on('connect')
def enter_room():
Expand Down

0 comments on commit 684027f

Please sign in to comment.