MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getProcessedText

Function getProcessedText

apps/public/src/app/md/route.ts:19–31  ·  view source on GitHub ↗
(page: {
  data: { getText?: (type: 'processed' | 'raw') => Promise<string> };
})

Source from the content-addressed store, hash-verified

17}
18
19async function getProcessedText(page: {
20 data: { getText?: (type: 'processed' | 'raw') => Promise<string> };
21}): Promise<string | null> {
22 try {
23 const getText = page.data.getText;
24 if (typeof getText === 'function') {
25 return await getText('processed');
26 }
27 } catch {
28 // ignore
29 }
30 return null;
31}
32
33export async function GET(request: Request) {
34 const url = new URL(request.url);

Callers 1

GETFunction · 0.85

Calls 1

getTextFunction · 0.85

Tested by

no test coverage detected