Last active
July 9, 2020 20:13
-
-
Save estiller/0481311fa1a46fabc528be64baac2d6d to your computer and use it in GitHub Desktop.
Building a Custom URL Shortener Using Azure Functions and Cosmos DB - Adding the URL Redirect Endpoint
This file contains 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
{ | |
"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