Split routes into client and api