-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.demo.js
34 lines (33 loc) · 1.04 KB
/
config.demo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
databases: [
{type: 'sqlite', name: 'default', config: {path: 'database.db'}}
],
routes: [
{path: '/hello', controller: 'Index', action: 'hello'},
{path: '/redirectToGoogle', redirect: 'https://google.com', code: 302},
{path: '/someFile', file: 'moreStatic/test.json', filename: 'test!!!.json'},
{
path: '/fn', fn: async (req, res, next) => {
res.send('Hello from function');
}
},
],
"emailTransports": {
"default": {
"host": "STMP.COM",
"port": 465,
"secure": true,
"auth": {
"user": "SMTP-USER",
"pass": "SMTP-PASSWORD"
},
"from": "Favorito Framework <info@expressApp.biz>",
"debug": true
}
},
publicPath: 'public',
"secret": "5f0239f8f8ad284983c11ee815874562",
"appUrl": "https://favorito",
"salt": "19d62fc823eb117f148b61110e08fba7a",
"arbitratorSecret": "secretPasswordTwo"
}