Created
January 27, 2020 23:50
-
-
Save RGBKnights/f484205c5741bb331ce543887d63405b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FunctionName("FnGetAccountCounts")] | |
public async Task<IActionResult> GetAccountCounts( | |
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "accounts/{key}")] HttpRequest req, | |
[Blob("hgv-ad-players/{key}.json")]TextReader reader, | |
string key, | |
ILogger log) | |
{ | |
if(reader == null) | |
return new NotFoundResult(); | |
var json = await reader.ReadToEndAsync(); | |
return new OkObjectResult(json); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment