salix/loopback/common/methods/application/status.js

20 lines
383 B
JavaScript
Raw Permalink Normal View History

module.exports = Self => {
Self.remoteMethod('status', {
description: 'Gets the backend status',
returns: {
type: 'Object',
root: true
},
http: {
path: `/status`,
verb: 'GET'
}
});
Self.status = async() => {
await Self.rawSql(`SELECT TRUE`);
return true;
};
};