Changed route subgenerator to endpoint
Changed route subgenerator to endpoint