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

Function redirectWithMessage

api/src/plugins/redirect-with-message.ts:30–36  ·  view source on GitHub ↗
(
  this: FastifyReply,
  url: string,
  message: Message
)

Source from the content-addressed store, hash-verified

28});
29
30function redirectWithMessage(
31 this: FastifyReply,
32 url: string,
33 message: Message
34) {
35 return this.redirect(`${url}?${formatMessage(message)}`);
36}
37
38/**
39 * Formats the message into a querystring.

Callers

nothing calls this directly

Calls 1

formatMessageFunction · 0.85

Tested by

no test coverage detected