 
 
   get "/:room_id" do
-    authorize_user!(conn, ["admin", "member"])
+    authenticate_user!(conn)
 
     room_id = conn.params[:room_id]
     room = Repo.get Room, room_id



  get "/:room_id/users" do
    authorize_user!(conn, ["admin", "member"])
    room_id = binary_to_integer(conn.params[:room_id])
    room = Repo.get Room, room_id
    now  = current_timestamp()



  get "/" do
    authenticate_user!(conn)

    rooms = Repo.all Room
    rooms_attributes = lc room inlist rooms do
      Room.public_attributes(room)
