Skip to content

Commit

Permalink
changes api config files
Browse files Browse the repository at this point in the history
  • Loading branch information
s33chin committed Jun 8, 2024
1 parent cf8bf59 commit c45ac2f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 30 deletions.
20 changes: 15 additions & 5 deletions api/host.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingExcludedTypes": "Request",
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
"isEnabled": true
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 2.0.0)"
"customHandler": {
"description": {
"defaultExecutablePath": "node",
"arguments": [
"."
]
},
"enableForwardingHttpRequest": true
},
"extensions": {
"http": {
"routePrefix": ""
}
}
}
9 changes: 3 additions & 6 deletions api/search/function.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"generatedBy": "ezfunc",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"authLevel": "anonymous",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
],
"route": "search"
},
{
Expand All @@ -17,4 +14,4 @@
"name": "res"
}
]
}
}
36 changes: 17 additions & 19 deletions api/suggest/function.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
],
"route": "suggest"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
{
"generatedBy": "ezfunc",
"bindings": [
{
"type": "httpTrigger",
"authLevel": "anonymous",
"direction": "in",
"name": "req",
"route": "suggest"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}

0 comments on commit c45ac2f

Please sign in to comment.