Last active
April 26, 2019 16:21
-
-
Save rzvdaniel/9b6ef473ab361bdc59d27cfc4bdd1150 to your computer and use it in GitHub Desktop.
[Medium] Moleculer Mixins - A short introduction - world.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
module.exports = { | |
name: "world", | |
/** | |
* Actions | |
*/ | |
actions: { | |
/** | |
* Say a 'Hello World' | |
* | |
* @returns | |
*/ | |
helloWorld() { | |
return this.sayHelloWorld(); | |
} | |
}, | |
/** | |
* Methods | |
*/ | |
methods: { | |
sayHelloWorld() { | |
return "Hello World"; | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment