UNPKG

614 BJavaScriptView Raw
1/** This is an example Apemanfile to use apeman-app-form */
2
3"use strict";
4
5module.exports = {
6 $pkg: {/*...*/},
7 $apps: {
8 // Define your own app.
9 'my-app-01': {
10 // Map url and handlers.
11 '/': [
12 require('apeman-app-form')({}),
13 function (req, res, next) {
14 var body = req.body,
15 files = req.files;
16 console.log(body); // Request body data.
17 console.log(files); // Uploaded files.
18 next();
19 }
20 ]
21 }
22 }
23};
\No newline at end of file