| from fastapi import FastAPI, Request | |
| from handler import EndpointHandler | |
| import os | |
| app = FastAPI() | |
| handler = EndpointHandler(os.getcwd()) | |
| async def process_request(request: Request): | |
| json_data = await request.json() | |
| return handler(json_data) | |
| from fastapi import FastAPI, Request | |
| from handler import EndpointHandler | |
| import os | |
| app = FastAPI() | |
| handler = EndpointHandler(os.getcwd()) | |
| async def process_request(request: Request): | |
| json_data = await request.json() | |
| return handler(json_data) | |