Skip to content

Commit

Permalink
Merge pull request #39 from mobilemancer/poc/dab
Browse files Browse the repository at this point in the history
Poc/dab
  • Loading branch information
mobilemancer authored Oct 28, 2024
2 parents d35fcb0 + 4dc5060 commit 5b0fa07
Show file tree
Hide file tree
Showing 13 changed files with 6,366 additions and 1,503 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set Node.js version for Oryx
run: echo "NODE_VERSION=20" >> $GITHUB_ENV
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand Down
2 changes: 1 addition & 1 deletion api/Models/ProductRecommendation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
{
public string ProductName { get; set; }
public string Quote { get; set; }
public string User { get; set; }
public string UserName { get; set; }
}
2 changes: 1 addition & 1 deletion api/Products/GetLegends.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class GetLegends
{
[FunctionName(nameof(GetLegends))]
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "product/legends")] HttpRequest req,
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "Legends")] HttpRequest req,
ExecutionContext context,
ILogger log)
{
Expand Down
2 changes: 1 addition & 1 deletion api/Products/GetProductRecommendations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class GetProductRecommendations
{
[FunctionName(nameof(GetProductRecommendations))]
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "product/recommendations")] HttpRequest req,
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "ProductRecommendations")] HttpRequest req,
ExecutionContext context,
ILogger log)
{
Expand Down
2 changes: 1 addition & 1 deletion api/Products/GetProducts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class GetProducts
{
[FunctionName(nameof(GetProducts))]
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "product")] HttpRequest req,
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "Products")] HttpRequest req,
ExecutionContext context,
ILogger log)
{
Expand Down
10 changes: 5 additions & 5 deletions api/data/product-recommendations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
{
"productName": "Viper Probe",
"quote": "Give me 5000 hyperspace pods with Vipers in them and I'll show you some rebels. Eventually...",
"user": "Lord Vader"
"userName": "Lord Vader"
},
{
"productName": "R2",
"quote": "Good droid. Don't let them play Dejarik with wookies!",
"user": "seethreeepIO"
"userName": "seethreeepIO"
},
{
"productName": "RA-7",
"quote": "Best investment, ever!",
"user": "SholhD62"
"userName": "SholhD62"
},
{
"productName": "R5",
"quote": "Contrary to popular belief, they have great motivators.",
"user": "arrToo"
"userName": "arrToo"
}
]
]
1 change: 0 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ function buildSource() {
// sending to dumber.
return merge2(
gulp.src('src/**/*.json'),
gulp.src('data/**/*.json'),
buildJs('src/**/*.ts'),
buildHtml('src/**/*.html'),
buildCss('src/**/*.css')
Expand Down
Loading

0 comments on commit 5b0fa07

Please sign in to comment.