eddev 2.0.0-beta.96 → 2.0.0-beta.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -335,10 +335,16 @@ export function createVinxiCodegen(opts) {
|
|
|
335
335
|
}),
|
|
336
336
|
)
|
|
337
337
|
.get(
|
|
338
|
-
"/_data/manifest
|
|
338
|
+
"/_data/manifest/**:input",
|
|
339
339
|
eventHandler(async (event) => {
|
|
340
340
|
const manifest = getManifest("client")
|
|
341
|
-
const
|
|
341
|
+
const id = getRouterParam(event, "input")
|
|
342
|
+
const input = manifest.inputs[id === 'handler' ? manifest.handler : id]
|
|
343
|
+
const result = {
|
|
344
|
+
...input,
|
|
345
|
+
assets: await manifest.assets(),
|
|
346
|
+
}
|
|
347
|
+
const code = inspect(result, { depth: 10 })
|
|
342
348
|
return new Response(code, { headers: { "Content-Type": "text/plain" } })
|
|
343
349
|
}),
|
|
344
350
|
)
|