Create: Backend branch

This commit is contained in:
Yûki VACHOT 2021-12-22 11:09:20 +01:00
parent f91febf919
commit 76ac0c292c
260 changed files with 10 additions and 12964 deletions

View file

@ -0,0 +1,9 @@
function sendMessage (res, successCode, data, token=null) {
res.status(200).json({ status: 'success', successCode: successCode, token: token, data: data });
}
function sendError (res, statusCode, errorCode, reason, token=null) {
res.status(statusCode).json({ status: 'error', errorCode: errorCode, token: token, reason: reason});
}
module.exports = { sendMessage, sendError };