protected function setupAnnotatedRoutes(): void
    {
        /** @var RouteAnnotations $routeAnnotations */
        $routeAnnotations = $this->app->container()->getSingleton(
            RouteAnnotations::class
        );

        // Get all the annotated routes from the list of controllers
        $routes = $routeAnnotations->getRoutes(
            ...$this->app->config()['routing']['controllers']
        );

        // Iterate through the routes
        foreach ($routes as $route) {
            // Set the route
            $this->addRoute($route);
        }
    }