MCPcopy
hub / github.com/midrender/revideo / configureServer

Function configureServer

packages/renderer/server/renderer-plugin.ts:86–91  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

84 },
85
86 configureServer(server) {
87 server.middlewares.use('/render', (_req, res) => {
88 res.setHeader('Content-Type', 'text/html');
89 res.end(createHtml(`/@id/__x00__virtual:renderer`));
90 });
91 },
92 };
93}

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
createHtmlFunction · 0.70

Tested by

no test coverage detected