package net.frozenorb.apiv3.routes; import com.google.common.collect.ImmutableMap; import net.frozenorb.apiv3.actors.Actor; public final class GETWhoAmI implements Handler { public void handle(RoutingContext ctx) { Actor actor = ctx.get("actor"); return ImmutableMap.of( "name", actor.getName(), "type", actor.getType(), "authorized", actor.isAuthorized() ); } }