src/Calotype/SEO/Providers/SEOServiceProvider.php
public function generateDefaultRoutes()
    {
        $app = $this->app;

        // Create the default robots.txt content
        $app['calotype.seo.generators.robots']->addUserAgent('*');
        $app['calotype.seo.generators.robots']->addDisallow('');
        $app['calotype.seo.generators.robots']->addSpacer();
        $app['calotype.seo.generators.robots']->addSitemap($app['request']->root() . '/sitemap.xml');

        // Generate sitemap.xml route
        $app['router']->get('sitemap.xml', function () use ($app) {
            $response = new Response($app['calotype.seo.generators.sitemap']->generate(), 200);
            $response->header('Content-Type', 'application/xml');

            return $response;
        });

        // Generate robots.txt route
        $app['router']->get('robots.txt', function () use ($app) {
            $response = new Response($app['calotype.seo.generators.robots']->generate(), 200);
            $response->header('Content-Type', 'text/plain');

            return $response;
        });
    }
public function generateDefaultRoutes()
    {
        $app = $this->app;

        // Create the default robots.txt content
        $app['calotype.seo.generators.robots']->addUserAgent('*');
        $app['calotype.seo.generators.robots']->addDisallow('');
        $app['calotype.seo.generators.robots']->addSpacer();
        $app['calotype.seo.generators.robots']->addSitemap($app['request']->root() . '/sitemap.xml');

        // Generate sitemap.xml route
        $app['router']->get('sitemap.xml', function () use ($app) {
            $response = new Response($app['calotype.seo.generators.sitemap']->generate(), 200);
            $response->header('Content-Type', 'application/xml');

            return $response;
        });

        // Generate robots.txt route
        $app['router']->get('robots.txt', function () use ($app) {
            $response = new Response($app['calotype.seo.generators.robots']->generate(), 200);
            $response->header('Content-Type', 'text/plain');

            return $response;
        });
    }
Generate default routes for /sitemap.xml and /robots.txt

@return void