MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / prepareMessage

Function prepareMessage

api/src/plugins/redirect-with-message.ts:26–28  ·  view source on GitHub ↗
(message: Message)

Source from the content-addressed store, hash-verified

24
25// The client expects a message like { info: ['foo'] }, { danger: ['bar'] } etc.
26const prepareMessage = (message: Message): MessageQuery => ({
27 [message.type]: [message.content]
28});
29
30function redirectWithMessage(
31 this: FastifyReply,

Callers 1

formatMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected