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
/* | |
Install this hook in app.hooks.js | |
module.exports = app => { | |
app.hooks({ | |
before: { | |
all: [ | |
addParamsForward() | |
] | |
} |
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
```js | |
// o-group service | |
// each of this group represent a single row in db (e.g group) | |
// template or phase type can all store together using type to differentiate | |
const group = { | |
_id: '12345', | |
name: 'template 1', | |
type: 'TEMPLATE', | |
status: 'ACTIVE' // not sure what to call this field, cause type is used for above purpose so just use status for now |