Files
personalsite/app/robots.txt/route.ts
2026-04-03 16:20:51 +03:00

19 lines
414 B
TypeScript

import { NextResponse } from "next/server";
export async function GET() {
const content = `User-agent: *
Allow: /
Disallow: /api/
Sitemap: https://denizbektas.com.tr/sitemap.xml
# Hi! If you're a human reading this, check out /humans.txt
# If you're a security researcher, check out /security.txt
`;
return new NextResponse(content, {
headers: { "Content-Type": "text/plain; charset=utf-8" },
});
}