Files
personalsite/app/api/rss/podcast/route.ts
2026-04-03 16:20:51 +03:00

24 lines
941 B
TypeScript

import { NextResponse } from "next/server";
const SITE_URL = "https://denizbektas.com.tr";
export async function GET() {
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Deniz Bektaş Podcast</title>
<link>${SITE_URL}/podcast</link>
<description>Türkçe siber güvenlik podcast&apos;i — red team, pentest ve hacker kültürü</description>
<language>tr</language>
<itunes:author>denizbektas</itunes:author>
<itunes:category text="Technology"/>
<atom:link href="${SITE_URL}/api/rss/podcast" rel="self" type="application/rss+xml"/>
<lastBuildDate>${new Date().toUTCString()}</lastBuildDate>
</channel>
</rss>`;
return new NextResponse(xml, {
headers: { "Content-Type": "application/xml; charset=utf-8", "Cache-Control": "public, max-age=3600" },
});
}