1 | /** This is an example Apemanfile to use apeman-app-json */
|
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-json')({
|
13 | // Options
|
14 | }),
|
15 | (req, res, next) => {
|
16 | // `res.json()` method is available now.
|
17 | res.json({
|
18 | success: true
|
19 | })
|
20 | }
|
21 | ]
|
22 | }
|
23 | }
|
24 | }; |
\ | No newline at end of file |