Skip to content

Commit 0ec7bac

Browse files
authored
feat: test api for fila (#264)
1 parent d44e380 commit 0ec7bac

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default defineEventHandler(async (event) => {
2+
try {
3+
const logger = useLogger('api:tilda:fila')
4+
5+
const body = await readBody(event)
6+
7+
logger.success(JSON.stringify(body, null, 2))
8+
9+
return {
10+
ok: true,
11+
}
12+
} catch (error) {
13+
throw errorResolver(error)
14+
}
15+
})

apps/web-app/server/middleware/01.auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const routesWithoutAuth = [
1111
'/api/beacon/epic/comment',
1212
'/api/cuid', // public
1313
'/api/qr', // public
14+
'/api/tilda/fila', // public
1415
]
1516

1617
/**

0 commit comments

Comments
 (0)