chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
from ray import serve
|
||||
|
||||
app = FastAPI(docs_url="/my_docs")
|
||||
|
||||
|
||||
@serve.deployment
|
||||
@serve.ingress(app)
|
||||
class FastAPIDeployment:
|
||||
@app.get("/hello")
|
||||
def incr(self):
|
||||
return "Hello world!"
|
||||
|
||||
|
||||
node = FastAPIDeployment.bind()
|
||||
Reference in New Issue
Block a user