This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format = """ | |
[░▒▓]( fg:green)\ | |
[ ](bg:green fg:fg_white)\ | |
$username\ | |
[](bg:white fg:green)\ | |
$directory\ | |
[](fg:white bg:red)\ | |
$git_branch\ | |
$git_status\ | |
[](fg:red bg:black)\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { FastifyReply } from "fastify"; | |
export function valid_reply(rep: FastifyReply, data: object | null | undefined, msg = "Successful Response", status = 200) { | |
return rep.send({ | |
message: msg, | |
success: true, | |
error: false, | |
statusCode: status, | |
data, | |
}); |