Write some of the vault api in the route handlers