Files
Montech_Landing/apps/landing/server/routes/robots.txt.ts
T

7 lines
284 B
TypeScript
Raw Normal View History

export default defineEventHandler((event) => {
const config = useRuntimeConfig();
const site = config.public.siteUrl || "https://montech.ir";
setHeader(event, "Content-Type", "text/plain");
return `User-agent: *\nAllow: /\nDisallow: /adm\nSitemap: ${site}/sitemap.xml\n`;
});