16 lines
331 B
JavaScript
16 lines
331 B
JavaScript
|
|
||
|
module.exports = Self => {
|
||
|
Self.remoteMethod('test', {
|
||
|
description: 'Tests connector configuration',
|
||
|
http: {
|
||
|
path: `/test`,
|
||
|
verb: 'GET'
|
||
|
}
|
||
|
});
|
||
|
|
||
|
Self.test = async function() {
|
||
|
let connector = await Self.getSynchronizer();
|
||
|
await connector.test();
|
||
|
};
|
||
|
};
|