15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
|
import * as verifications from './verifications';
|
||
|
|
||
|
function make(name, mod) {
|
||
|
return Object.keys(mod).reduce((result, key) => ({
|
||
|
...result,
|
||
|
[`${name}:${key}`]: mod[key]
|
||
|
}), {})
|
||
|
}
|
||
|
|
||
|
export default function ({ app }) {
|
||
|
app.actions({
|
||
|
...make('verifications', verifications)
|
||
|
});
|
||
|
}
|