WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Function createAuthRoutes

    • Authentication Routes Factory Function

      Creates and configures an Express router with authentication endpoints using the provided AuthController instance. This factory function follows the composition root pattern where dependencies are injected from a central location rather than being instantiated within the route module.

      Parameters

      • authController: AuthController

        Configured AuthController instance with all dependencies

      Returns Router

      Express router configured with authentication endpoints