Files
template-app/apps/web/src/routes/api.brand.og.ts
T
2026-11-14 09:56:45 +00:00

14 lines
494 B
TypeScript

// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// The app's own share image (src/server/brand-routes.ts): public, because a link preview is fetched without
// a session. A more specific file than `api.$.ts`, so it answers its own path first.
import { createFileRoute } from "@tanstack/react-router"
export const Route = createFileRoute("/api/brand/og")({
server: {
handlers: {
GET: async () => (await import("../server/brand-routes")).appShareImage(),
},
},
})