Skip to content

Commit 3974989

Browse files
committed
chore(storage): add production hub api routes
1 parent c97f5a9 commit 3974989

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default eventHandler(async (event) => {
2+
// TODO
3+
return {}
4+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default eventHandler(async (event) => {
2+
// TODO
3+
return {}
4+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { useValidatedQuery, z } from 'h3-zod'
2+
3+
export default eventHandler(async (event) => {
4+
// TODO: handle authorization
5+
6+
const { name } = await useValidatedQuery(event, {
7+
name: z.ostring()
8+
})
9+
10+
return useBlob(name).list()
11+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default eventHandler(async (event) => {
2+
// TODO
3+
return {}
4+
})

0 commit comments

Comments
 (0)