FastAPI에서 아래와 같이 main에서 request를 SQLModel 상속받은 데이터 품은 채로 특정 url(예 : http://0.0.0.0/exec) 같은곳에 보내는 문법 없음? ㅠㅠㅠ 며칠째 찾는데 비슷한것도 못찾겠음 ㅠㅠㅠㅠㅠㅠㅠ
class RequestModel(SQLModel):
~~~
@app.post('/')
async def main(~~~):
~~~
request.post(url='/exec' data=SQLModel클래스_인스턴스)
@app.post('/exec')
async def execution(request):
request_model = await request.data
~~~
request.post(url=~~)
exec쪽 비지니스 로직을 다른 함수로 분리하고 그걸 호출해 시발아 http요청을 하나 더 만들라하고있노 아
ㅠㅠ
있음 ㅇㅇ