mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
feat: express responses
This commit is contained in:
1 parent
0f46f333b5
commit
f2ae698438
45 files changed
+153
-93
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { ResponderReturnable } from '../../server.js';
|
||||
import jsxToSvg from '../ui/jsxToSvg.js';
|
||||
|
||||
export default async function normalizeResponderReturnable(
|
||||
returnable: ResponderReturnable,
|
||||
) {
|
||||
const awaitedReturnable = await returnable;
|
||||
const svg = await jsxToSvg(awaitedReturnable);
|
||||
|
||||
return svg;
|
||||
}
|
||||
Reference in new issue
Block a user