Remove template function
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
using System.Net;
|
|
||||||
using Microsoft.Azure.Functions.Worker;
|
|
||||||
using Microsoft.Azure.Functions.Worker.Http;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
|
|
||||||
namespace BeauFindlay.Api
|
|
||||||
{
|
|
||||||
public class Function1(ILoggerFactory loggerFactory)
|
|
||||||
{
|
|
||||||
private readonly ILogger _logger = loggerFactory.CreateLogger<Function1>();
|
|
||||||
|
|
||||||
[Function("Function1")]
|
|
||||||
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequestData req)
|
|
||||||
{
|
|
||||||
_logger.LogInformation("C# HTTP trigger function processed a request.");
|
|
||||||
|
|
||||||
var response = req.CreateResponse(HttpStatusCode.OK);
|
|
||||||
response.Headers.Add("Content-Type", "text/plain; charset=utf-8");
|
|
||||||
|
|
||||||
response.WriteString("Welcome to Azure Functions!");
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user