added logic for get/post routes
got it to go to chatroom