blob: 9c375524ea0f95f612a8ecadcb4bab4998733a54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import uvicorn
from typing import Dict, Any
from fastapi import FastAPI
PORT = 1234
HOST = "localhost"
APP = FastAPI()
@APP.post("/assets")
async def assets(payload: Dict[Any, Any]):
return payload, 200
@APP.get("/check")
async def check():
return 200
if __name__ == "__main__":
uvicorn.run(APP, host=HOST, port=PORT)
|