ваше сообщение коммита

This commit is contained in:
2026-03-03 16:51:35 +03:00
parent 857ea60e55
commit 59326c7f99
3 changed files with 33 additions and 5 deletions

View File

@@ -2173,6 +2173,11 @@ router.get('/public/sitemap.xml', async (req, res) => {
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>${baseUrl}/gitea</loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
`;
if (existsRes.rows[0].exists) {
@@ -2229,7 +2234,7 @@ router.get('/public/sitemap.xml', async (req, res) => {
sitemap += `</urlset>`;
res.setHeader('Content-Type', 'application/xml');
res.setHeader('Content-Type', 'application/xml; charset=UTF-8');
res.send(sitemap);
} catch (error) {
console.error('Ошибка генерации sitemap.xml:', error);