mirror of
https://gitlab.com/2-chainz/2-chainz-rest.git
synced 2025-08-05 04:51:28 +00:00
changed endpoint to /quote
This commit is contained in:
10
quote/__init__.py
Normal file
10
quote/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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)}))
|
Reference in New Issue
Block a user