UNPKG

397 BJavaScriptView Raw
1/** This is an example Apemanfile to use apeman-app-rest */
2
3'use strict'
4
5const db = require('./db') // Apeman db modle instance
6const { User } = db.models
7
8module.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}