nodejs-express-server.services.Service.mustache Maven / Gradle / Ivy
class Service {
static rejectResponse(error, code = 500) {
return { error, code };
}
static successResponse(payload, code = 200) {
return { payload, code };
}
}
module.exports = Service;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy