19 lines
439 B
JavaScript
19 lines
439 B
JavaScript
module.exports = Self => {
|
|
Self.remoteMethod('getThermographModels', {
|
|
description: 'Gets the thermograph models',
|
|
accessType: 'READ',
|
|
returns: {
|
|
type: ['String'],
|
|
root: true
|
|
},
|
|
http: {
|
|
path: `/getThermographModels`,
|
|
verb: 'GET'
|
|
}
|
|
});
|
|
|
|
Self.getThermographModels = async() => {
|
|
return Self.getEnumValues('model');
|
|
};
|
|
};
|