Exemplo n.º 1
0
 def post(self, request, *args, **kwargs):
     '''
     Create room
     '''
     user = fetch_user(request)
     room = Room.create_by(user).save()
     return OKResponse(room.to_dict())
Exemplo n.º 2
0
 def post(self, request, *args, **kwargs):
     """
     Create room
     """
     user = fetch_user(request)
     room = Room.create_by(user).save()
     user.enter_room(room).save()
     return OKResponse(room.to_dict())