-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
33 lines (33 loc) · 1.1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = require('ut-run').microservice(
module,
require,
() => function utMicroservice() {
return {
config: require('./config'),
errors: () => function publicErrors(...params) {
return require('./errors')(...params);
},
adapter: () => [
require('./api/sql/schema'),
require('./api/sql/seed'),
require('./api/sql/standard'),
require('./errors')
],
orchestrator: () => [
require('./errors'),
require('./api/microservice'),
require('ut-dispatch-db')(['microservice', 'example'], ['utMicroservice.foo'], ['utMicroservice.validation'])
],
gateway: () => [
require('./errors'),
require('./validations'),
require('./openApi')
],
test: () => [
...require('./test/steps'),
...require('./test/ui'),
...require('./test/jobs')
]
};
}
);