MCPcopy Create free account
hub / github.com/BCsabaEngine/svelteesp32 / genHook

Function genHook

src/cppCode.ts:184–185  ·  view source on GitHub ↗
(d: TemplateData)

Source from the content-addressed store, hash-verified

182 ].join('\n');
183
184export const genHook = (d: TemplateData): string =>
185 `// File served hook - override with your own implementation\nextern "C" void __attribute__((weak)) ${d.definePrefix}_onFileServed(const char* path, int statusCode) {}`;
186
187const getGenerator = (engine: ICopyFilesArguments['engine']): ((d: TemplateData) => string) => {
188 switch (engine) {

Callers 3

genPsychicCppFunction · 0.90
genAsyncCppFunction · 0.90
genWebserverCppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected