proxy/packages/server/src/messages/baseMessage.ts

14 lines
284 B
TypeScript
Raw Normal View History

2023-11-14 17:56:44 +00:00
/**
* Creates a base message for use in JSON responses
*
* @param error the error status
* @param message the message to show
* @returns the base message
*/
export function baseMessage(error: boolean, message: string) {
return {
error: error,
message: message,
};
}