deniz bektaş
This commit is contained in:
23
app/api/rss/podcast/route.ts
Normal file
23
app/api/rss/podcast/route.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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" },
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user