mirror of
https://gitlab.com/2-chainz/2-chainz-rest.git
synced 2025-08-03 03:51:24 +00:00
11 lines
303 B
Python
11 lines
303 B
Python
import logging
|
|
import json
|
|
import azure.functions as func
|
|
import random
|
|
from . import quotes
|
|
|
|
|
|
def main(req: func.HttpRequest) -> func.HttpResponse:
|
|
logging.info("Python HTTP trigger function processed a request.")
|
|
return func.HttpResponse(json.dumps({"message": random.choice(quotes.quotes)}))
|