Skip to content

Commit 41e651e

Browse files
committed
:feat(fun): Feat init init-collection-data
1 parent e5a4b20 commit 41e651e

23 files changed

+2891
-721
lines changed

laf-cloud/functions/Demo.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import cloud from '@lafjs/cloud'
2+
3+
export async function main(ctx: FunctionContext) {
4+
console.log('Hello World')
5+
return { data: 'hi, laf' }
6+
}

laf-cloud/functions/Demo.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Demo
2+
methods:
3+
- GET
4+
- POST
5+
tags:
6+
- test

0 commit comments

Comments
 (0)