UNPKG

apeman-app-rest

Version:
22 lines (18 loc) 397 B
/** This is an example Apemanfile to use apeman-app-rest */ 'use strict' const db = require('./db') // Apeman db modle instance const { User } = db.models module.exports = { $pkg: { /* ... */ }, $apps: { // Define your own app. 'my-app-01': { // Map url and handlers. '/': [ require('apeman-app-rest')(User, { // Options }) ] } } }