Skip to content

Commit 5f967c5

Browse files
committed
fix(api): fix single component query
1 parent 757a115 commit 5f967c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/server/api/component-meta.get.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineEventHandler((event) => {
66
// TODO: Replace via downstream config
77
appendHeader(event, 'Access-Control-Allow-Origin', '*')
88

9-
const componentName = event.context.params.component
9+
const componentName = event.context.params['component?']
1010

1111
if (componentName) {
1212
const meta = components.find(c => c.name === pascalCase(componentName))

0 commit comments

Comments
 (0)