We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecef73a commit b77f842Copy full SHA for b77f842
plugins/empty/api/api.js
@@ -1,14 +1,6 @@
1
-var plugin = {},
2
- common = require('../../../api/utils/common.js'),
3
- plugins = require('../../pluginManager.js');
+var plugins = require('../../pluginManager.js');
4
5
-(function(plugin) {
6
- //write api call
7
- /*
8
- plugins.register("/i", function(ob){
9
-
10
- });
11
- */
12
-}(plugin));
13
14
-module.exports = plugin;
+//write api call
+plugins.register("/i", function(/*ob*/) {
+ //process sdk request here
+});
plugins/empty/frontend/app.js
@@ -1,9 +1,7 @@
var plugin = {};
- plugin.init = function(app, countlyDb) {
- };
+plugin.init = function(/*app, countlyDb*/) {
+ //add middleware here
+};
module.exports = plugin;
0 commit comments