Skip to content

Instantly share code, notes, and snippets.

Last active Jul 9, 2020
What would you like to do?
Building a Custom URL Shortener Using Azure Functions and Cosmos DB - Adding the URL Redirect Endpoint
"bindings": [
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["get"],
"route": "{vanity}"
"type": "cosmosDB",
"direction": "in",
"name": "registration",
"databaseName": "registrations",
"collectionName": "registrations",
"createIfNotExists": "true",
"connectionStringSetting": "RegistrationsDB",
"collectionThroughput": "400",
"partitionKey": "{vanity}",
"id": "{vanity}"
"type": "http",
"direction": "out",
"name": "res"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment