Skip to content

Instantly share code, notes, and snippets.

@codemillmatt
Created September 4, 2018 17:21
Show Gist options
  • Save codemillmatt/61b8dd9b198df31e0f6169d412f62242 to your computer and use it in GitHub Desktop.
Save codemillmatt/61b8dd9b198df31e0f6169d412f62242 to your computer and use it in GitHub Desktop.
[FunctionName("MovieReviewPermission")]
public static async Task<HttpResponseMessage> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]HttpRequestMessage req,
[DocumentDB(databaseName: "moviereview-db", collectionName: "reviews", ConnectionStringSetting = "CosmosConnectionString")] DocumentClient client,
TraceWriter log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment