1 | /** This is an example Apemanfile to use apeman-app-rest */
|
2 |
|
3 |
|
4 |
|
5 | const db = require('./db') // Apeman db modle instance
|
6 | const { User } = db.models
|
7 |
|
8 | module.exports = {
|
9 | $pkg: { /* ... */ },
|
10 | $apps: {
|
11 | // Define your own app.
|
12 | 'my-app-01': {
|
13 | // Map url and handlers.
|
14 | '/': [
|
15 | require('apeman-app-rest')(User, {
|
16 | // Options
|
17 | })
|
18 | ]
|
19 | }
|
20 | }
|
21 | }
|