Add project files.
This commit is contained in:
23
FunctionApp1/Function1.cs
Normal file
23
FunctionApp1/Function1.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Azure.Functions.Worker;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace FunctionApp1;
|
||||
|
||||
public class Function1
|
||||
{
|
||||
private readonly ILogger<Function1> _logger;
|
||||
|
||||
public Function1(ILogger<Function1> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
[Function("Function1")]
|
||||
public IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequest req)
|
||||
{
|
||||
_logger.LogInformation("C# HTTP trigger function processed a request.");
|
||||
return new OkObjectResult("Welcome to Azure Functions!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user