forked from asyncapi/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve glee default template (asyncapi#946)
Co-authored-by: Lukasz Gornicki <[email protected]>%0ACo-authored-by: souvik <[email protected]>
- Loading branch information
1 parent
f040d75
commit f5f281e
Showing
7 changed files
with
2,943 additions
and
11,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
assets/create-glee-app/templates/default/functions/onHello.js
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
assets/create-glee-app/templates/default/functions/onHello.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { GleeFunctionReturn } from "@asyncapi/glee" | ||
|
||
export default async function (event): Promise<GleeFunctionReturn> { | ||
return { | ||
send: [{ | ||
payload: `Hello from Glee! You said: '${event.payload}'.`, | ||
channel: "hello", | ||
server: "websockets" | ||
}] | ||
} | ||
} |
Oops, something went wrong.