akh1r0ck commited on
Commit
a0d5a76
·
1 Parent(s): c0901d8
Files changed (1) hide show
  1. main.py +5 -4
main.py CHANGED
@@ -1,11 +1,12 @@
1
  from fastapi import FastAPI
2
 
3
- app = FastAPI(
4
- openapi_url="/api/v1/docker_test/openapi.json",
5
- docs_url="/api/v1/docker_test/docs"
6
- )
7
 
8
  @app.get("/")
9
  def read_root():
10
  return {"Hello": "World!"}
11
 
 
 
 
 
 
1
  from fastapi import FastAPI
2
 
3
+ app = FastAPI()
 
 
 
4
 
5
  @app.get("/")
6
  def read_root():
7
  return {"Hello": "World!"}
8
 
9
+ @app.post("/process/")
10
+ def process_inputs(a: str, b: str):
11
+ c = a + b
12
+ return {"c": c}