-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathserverless-azure.yml
72 lines (72 loc) · 1.53 KB
/
serverless-azure.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
service: serverless-multicloud-example
provider:
name: azure
location: Australia East
environment:
MONGO_URL: 'mongodb://username:password@mongo:27017/todolist'
plugins:
- serverless-azure-functions
- serverless-express
package:
exclude:
- local.settings.json
- .gitignore
- .git/**
functions:
app:
handler: handler.handler
events:
- http: true
x-azure-settings:
authLevel : anonymous
name: req
methods:
- get
- http: true
x-azure-settings:
direction: out
name: res
getall:
handler: handler.handler
events:
- http: true
x-azure-settings:
authLevel : anonymous
name: req
methods:
- get
route: app/documents/all
- http: true
x-azure-settings:
direction: out
name: res
id:
handler: handler.handler
events:
- http: true
x-azure-settings:
authLevel : anonymous
name: req
methods:
- get
- delete
- patch
route: app/documents/id
- http: true
x-azure-settings:
direction: out
name: res
postnew:
handler: handler.handler
events:
- http: true
x-azure-settings:
authLevel : anonymous
name: req
methods:
- post
route: app/documents/new
- http: true
x-azure-settings:
direction: out
name: res