<?php

namespace App\Http\Controllers\Api;

use App\Facades\Services\SitemapService;
use Illuminate\Support\Facades\Storage;

class SitemapController
{
    /**
     * Generate the sitemap
     * @return string
     */
    public function index()
    {
        SitemapService::generateSitemap();

        return Storage::get(config('path.internal.sitemap').'/sitemap.xml');
    }

}
