Last active
May 16, 2020 13:31
-
-
Save JarroVGIT/b896f57128d4ede766d65506dbe57c56 to your computer and use it in GitHub Desktop.
FrontendFunction Unprotected __init__.py
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
import logging | |
import azure.functions as func | |
import requests | |
def main(req: func.HttpRequest) -> func.HttpResponse: | |
#Replace the URL with the URL from your Backend Function. | |
response = requests.get('https://azureblogging-backend.azurewebsites.net/api/SecretAPI').text | |
return func.HttpResponse( | |
"This message is generated from our PublicAPI in the Frontend Function. \n"+ response, | |
status_code=200 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment