Skip to content

Commit

Permalink
Merge pull request #3 from lakshmansha/develop
Browse files Browse the repository at this point in the history
To Master After API Changes.
  • Loading branch information
lakshmansha committed May 5, 2024
2 parents 7ae69f5 + 3e9df84 commit ba33357
Show file tree
Hide file tree
Showing 13 changed files with 23,833 additions and 476 deletions.
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"assets": [
"src/favicon.ico",
"src/assets",
"src/web.config"
"src/web.config",
"src/staticwebapp.config.json"
],
"styles": [
"src/styles.scss"
Expand Down
19 changes: 19 additions & 0 deletions api/GetConfig/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
16 changes: 16 additions & 0 deletions api/GetConfig/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = async function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');

const config = {
"EnvName": process.env['EnvName'],
"IsFirebase": process.env['IsFirebase'],
"FireBaseAPIKey": process.env['FireBaseAPIKey'],
"IsRestAPI": process.env['IsRestAPI'],
"RESTLoggingUrl": process.env['RESTLoggingUrl']
}

context.res = {
// status: 200, /* Defaults to 200 */
body: config
};
}
3 changes: 3 additions & 0 deletions api/GetConfig/sample.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "Azure"
}
2 changes: 1 addition & 1 deletion api/host.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 2.0.0)"
"version": "[4.*, 5.0.0)"
}
}
13 changes: 0 additions & 13 deletions api/local.settings.sample.json

This file was deleted.

50 changes: 1 addition & 49 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"start": "func start",
"test": "echo \"No tests yet...\""
},
"dependencies": {
"@azure/functions": "^4.0.0"
},
"devDependencies": {},
"main": "src/functions/*.js"
"dependencies": {},
"devDependencies": {}
}
21 changes: 0 additions & 21 deletions api/src/functions/GetConfig.js

This file was deleted.

Loading

0 comments on commit ba33357

Please sign in to comment.