Skip to content

Commit

Permalink
Added azure function endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Sep 30, 2024
1 parent 75e9405 commit 76d7212
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
16 changes: 16 additions & 0 deletions functions/health/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["get"]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
23 changes: 23 additions & 0 deletions functions/host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
},
"customHandler": {
"description": {
"defaultExecutablePath": "octolint_linux_amd64_azure",
"workingDirectory": "",
"arguments": []
},
"enableForwardingHttpRequest": true
}
}
7 changes: 7 additions & 0 deletions functions/local.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "custom",
"AzureWebJobsStorage": ""
}
}

0 comments on commit 76d7212

Please sign in to comment.