Skip to the content

Capsid menu

app/routes/security-txt.ts

10 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

The functions of security-txt.ts
FunctionLinesComplexityCoveredCRAPMutation
loader4 to 111No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code

Imports

It imports app/lib/security-txt.mjs, app/lib/seo.ts. No module of this repo imports it.

Source

import { securityTxt } from "~/lib/security-txt.mjs";
import { HOURLY_CACHE_CONTROL, SITE_ORIGIN } from "~/lib/seo";

export function loader() {
  return new Response(securityTxt(SITE_ORIGIN), {
    headers: {
      "content-type": "text/plain; charset=utf-8",
      "cache-control": HOURLY_CACHE_CONTROL,
    },
  });
}