Move routing to event, would make it only called when
hitting the admin route.

Signed-off-by: crynobone <crynobone@gmail.com>