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