Changed api to router. Will need to update all references in kirby.