Files
outline/server/utils/robots.ts
T
2020-12-29 13:07:18 -08:00

9 lines
232 B
TypeScript

import { Context } from "koa";
const DISALLOW_ROBOTS = `User-agent: *
Disallow: /`;
export const robotsResponse = (ctx: Context): string | null => {
if (ctx.headers.host.indexOf("getoutline.com") < 0) return DISALLOW_ROBOTS;
};