Separating logic, trying to debug my routes