explicitly defining endpoint in routes file