You need to create two separate decorators: from fastapi import FastAPI app = FastAPI() @app.get("/get-employees") @app.get("/employees") def read_root(): ...
確定! 回上一頁