Skip to content

Commit

Permalink
Renaming and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Torkelsen committed Oct 10, 2024
1 parent be9910f commit 7092177
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/functions-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Azure Function
on:
push:
paths:
- 'handlenett-backend/serverless/HttpTriggerTest/**'
- 'handlenett-backend/serverless/HandlenettNotifications/**'
branches:
- main

Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
}
- name: Build the function app
run: dotnet publish handlenett-backend/serverless/HttpTriggerTest -c Release -o ./publish
run: dotnet publish handlenett-backend/serverless/HandlenettNotifications -c Release -o ./publish

- name: List published files
run: dir ./publish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.Logging;

namespace HttpTriggerTest
namespace HandlenettNotifications
{
public class Function1Renamed
{
Expand All @@ -14,7 +14,7 @@ public Function1Renamed(ILogger<Function1Renamed> logger)
_logger = logger;
}

[Function("Function1")]
[Function("OnlyChangedAttribute")]
public IActionResult Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequest req)
{
_logger.LogInformation("C# HTTP trigger function processed a request.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35208.52
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HttpTriggerTest", "HttpTriggerTest.csproj", "{396DFD5F-1ECB-429F-BAA7-235045DA8BD5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HandlenettNotifications", "HandlenettNotifications.csproj", "{396DFD5F-1ECB-429F-BAA7-235045DA8BD5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"HttpTriggerTest": {
"HandlenettNotifications": {
"commandName": "Project",
"commandLineArgs": "--port 7124",
"launchBrowser": false
Expand Down
24 changes: 0 additions & 24 deletions handlenett-backend/serverless/HttpTriggerTest/TestHttp.cs

This file was deleted.

0 comments on commit 7092177

Please sign in to comment.