(message: Message)
| 41 | * @returns The formatted message string. |
| 42 | */ |
| 43 | export function formatMessage(message: Message): string { |
| 44 | return qs.stringify( |
| 45 | { |
| 46 | messages: qs.stringify(prepareMessage(message), { |
| 47 | arrayFormat: 'index' |
| 48 | }) |
| 49 | }, |
| 50 | { arrayFormat: 'index' } |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | const plugin: FastifyPluginCallback = (fastify, _options, done) => { |
| 55 | fastify.decorateReply('redirectWithMessage', redirectWithMessage); |
no test coverage detected