diff --git a/examples/anime-http/server/asyncapi.yaml b/examples/anime-http/server/asyncapi.yaml index 1820a4a9d..fc3dcea23 100644 --- a/examples/anime-http/server/asyncapi.yaml +++ b/examples/anime-http/server/asyncapi.yaml @@ -39,6 +39,12 @@ operations: $ref: '#/channels/trendingAnime' messages: - $ref: '#/components/messages/trendingAnime' + trindingAnimeReply: + action: send + channel: + $ref: '#/channels/trendingAnime' + messages: + - $ref: '#/components/messages/tendingAnime' components: messages: trendingAnime: diff --git a/examples/anime-http/server/functions/trendingAnimeController.ts b/examples/anime-http/server/functions/trendingAnimeController.ts index 82bb78993..381a24eb3 100644 --- a/examples/anime-http/server/functions/trendingAnimeController.ts +++ b/examples/anime-http/server/functions/trendingAnimeController.ts @@ -2,11 +2,13 @@ export default async function (event) { const replyPayload = event.payload const replyQuery = event.query return { - reply: [ + send: [ { payload: replyPayload, - query: replyQuery - }, - ], + query: replyQuery, + channel: 'trendingAnime' + } + + ] } }