9 lines
160 B
Python
9 lines
160 B
Python
|
from fastapi import APIRouter, Body
|
||
|
|
||
|
router = APIRouter()
|
||
|
|
||
|
|
||
|
@router.post("/compute")
|
||
|
def compute(a: int = Body(), b: str = Body()):
|
||
|
return {"a": a, "b": b}
|