forked from fahrPool/fahrPool
14 lines
444 B
TypeScript
14 lines
444 B
TypeScript
import { ladeEigeneFirma } from "@/lib/firma/eigene-firma";
|
|
import { baueManifest } from "@/lib/pwa/manifest";
|
|
|
|
export async function GET() {
|
|
const ergebnis = await ladeEigeneFirma();
|
|
const manifest = baueManifest(ergebnis.status === "ok" ? ergebnis.firma : null);
|
|
return new Response(JSON.stringify(manifest), {
|
|
headers: {
|
|
"Content-Type": "application/manifest+json",
|
|
"Cache-Control": "private, no-cache",
|
|
},
|
|
});
|
|
}
|