apeman-app-rest
Version:
apeman app to handle restful endpoint.
22 lines (18 loc) • 397 B
JavaScript
/** This is an example Apemanfile to use apeman-app-rest */
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
})
]
}
}
}