1 | /** This is an example Apemanfile to use apeman-app-dynamic */
|
2 |
|
3 | ;
|
4 |
|
5 | module.exports = {
|
6 | $pkg: {/*...*/},
|
7 | $apps: {
|
8 | // Define your own app.
|
9 | 'my-app-01': {
|
10 | // Map url and handlers.
|
11 | '/': [
|
12 | require('apeman-app-dynamic')({
|
13 | form: {/*...*/}, // Options for apeman-app-form
|
14 | query: {/*...*/}, // Options for apeman-app-query
|
15 | lang: {/*...*/}, // Options for apeman-app-lang
|
16 | header: {/*...*/}, // Options for apeman-app-header
|
17 | json: {/*...*/}, // Options for apeman-app-json
|
18 | html: {/*...*/} // Options for apeman-app-html
|
19 | }),
|
20 | function (req, res, next) {
|
21 | console.log(req.query);
|
22 | console.log(req.body);
|
23 | res.json({
|
24 | success: true
|
25 | });
|
26 | }
|
27 | ]
|
28 | }
|
29 | }
|
30 | }; |
\ | No newline at end of file |