24 lines
941 B
TypeScript
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'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" },
|
|
});
|
|
}
|