update
This commit is contained in:
@@ -18,6 +18,11 @@ def get_db():
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"message": "Hello World"}
|
||||
|
||||
|
||||
@app.get("/add", response_model=schemas.User)
|
||||
def add_user(
|
||||
nickname: Optional[str] = None,
|
||||
|
||||
Reference in New Issue
Block a user