moriire commited on
Commit
1182d2f
1 Parent(s): b94326e

adjusted users

Browse files
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
__pycache__/main.cpython-310.pyc CHANGED
Binary files a/__pycache__/main.cpython-310.pyc and b/__pycache__/main.cpython-310.pyc differ
 
app.py CHANGED
@@ -63,7 +63,7 @@ app.add_middleware(
63
  allow_headers=["*"]
64
  )
65
  """
66
- llm_router = APIRouter()
67
  @llm_router.get("/")
68
  def index():
69
  return fastapi.responses.RedirectResponse(url="/docs")
 
63
  allow_headers=["*"]
64
  )
65
  """
66
+ llm_router = APIRouter(prefix="/llm")
67
  @llm_router.get("/")
68
  def index():
69
  return fastapi.responses.RedirectResponse(url="/docs")
main.py CHANGED
@@ -16,7 +16,7 @@ def get_db():
16
  finally:
17
  db.close()
18
 
19
- user_router = APIRouter()
20
 
21
  @user_router.post("/users/", response_model=schemas.User)
22
  def create_user(user: schemas.UserCreate, db: Session = Depends(get_db)):
 
16
  finally:
17
  db.close()
18
 
19
+ user_router = APIRouter(prefix="/user")
20
 
21
  @user_router.post("/users/", response_model=schemas.User)
22
  def create_user(user: schemas.UserCreate, db: Session = Depends(get_db)):