mikmc commited on
Commit
bda75f2
·
verified ·
1 Parent(s): 3108b7e

Update handlers/index.js

Browse files
Files changed (1) hide show
  1. handlers/index.js +7 -6
handlers/index.js CHANGED
@@ -1,11 +1,12 @@
1
- const searchCatalog = require('./search-catalog');
2
- const getMeta = require('./get-meta');
3
- const getStreams = require('./get-streams');
 
4
 
5
  module.exports = (dependencies) => {
6
  return {
7
- searchCatalog: searchCatalog, // Pass the reference to the function
8
- getMeta: getMeta, // Pass the reference to the function
9
- getStreams: getStreams, // Pass the reference to the function
10
  };
11
  };
 
1
+ // handlers/index.js
2
+ const searchCatalog = require('./search-catalog'); // Import searchCatalog
3
+ const getMeta = require('./get-meta'); // Import getMeta
4
+ const getStreams = require('./get-streams'); // Import getStreams
5
 
6
  module.exports = (dependencies) => {
7
  return {
8
+ searchCatalog: searchCatalog(dependencies), // Initialize searchCatalog function
9
+ getMeta: getMeta(dependencies), // Initialize getMeta function
10
+ getStreams: getStreams(dependencies), // Initialize getStreams function
11
  };
12
  };