-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
43 lines (43 loc) · 881 Bytes
/
now.json
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
35
36
37
38
39
40
41
42
43
{
"version": 2,
"name": "finager",
"builds": [
{ "src": "api/**/*.js", "use": "@now/node" },
{ "src": "openapi.json", "use": "@now/static" }
],
"routes": [
{
"src": "/payments/(?<id>[^/]+)",
"dest": "/api/getPayment.js",
"methods": ["GET"]
},
{
"src": "/payments/(?<id>[^/]+)",
"dest": "/api/updatePayment.js",
"methods": ["PATCH"]
},
{
"src": "/payments/(?<id>[^/]+)",
"dest": "/api/deletePayment.js",
"methods": ["DELETE"]
},
{
"src": "/payments",
"dest": "/api/addPayment.js",
"methods": ["POST"]
},
{
"src": "/payments",
"dest": "/api/listPayments.js",
"methods": ["GET"]
},
{
"src": "/open-api-spec",
"dest": "/openapi.json"
}
],
"env": {
"MONGO_URI": "@finagermongo",
"NODEJS_HELPERS": "0"
}
}