-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathHttpTrigger.cs
More file actions
27 lines (25 loc) · 835 Bytes
/
HttpTrigger.cs
File metadata and controls
27 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using IronSnappy;
namespace github_action_testfunctionapp_dotnetcore
{
public static class HttpTrigger
{
[FunctionName("HttpTrigger")]
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,
ILogger log)
{
log.LogInformation("Sucessfully loaded IronSnappy");
string responseMessage = "Hello Functions World!";
return new OkObjectResult(responseMessage);
}
}
}