<administration root>/services/joke.service.js
and looks like the example seen below:<administration root>/init/joke-service.init.js
and imported in the main.js
file of our plugin:inject
property:isActive
flag, we can react to it in our middleware and throw an exception if the service is not active.main.js
is needed.funny
attribute is added to the requested jokes by the previously registered JokeService
: