Skip to content

Instantly share code, notes, and snippets.

@JarroVGIT
Last active May 16, 2020 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JarroVGIT/b896f57128d4ede766d65506dbe57c56 to your computer and use it in GitHub Desktop.
Save JarroVGIT/b896f57128d4ede766d65506dbe57c56 to your computer and use it in GitHub Desktop.
FrontendFunction Unprotected __init__.py
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