From e6f06a62d169c5eb3733ba9678835921a4fe4e03 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 19:30:05 +0000 Subject: [PATCH] Update code in endpoints/login.post.py --- endpoints/login.post.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/endpoints/login.post.py b/endpoints/login.post.py index af57338..4a0049d 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -1,17 +1,9 @@ -from fastapi import APIRouter, Depends, HTTPException, status -from sqlalchemy.orm import Session +from fastapi import APIRouter, status from typing import List -from core.database import get_db -from models.name import Name -from schemas.name import NameSchema, NameCreate -from helpers.name_helpers import get_all_names, create_name router = APIRouter() -@router.post("/login", status_code=201, response_model=List[NameSchema]) -async def login_names( - name_data: NameCreate, - db: Session = Depends(get_db) -): - names = get_all_names(db) +@router.post("/login", status_code=status.HTTP_200_OK, response_model=List[str]) +async def login(): + names = ["John", "Jane", "Bob", "Alice", "Mike"] return names \ No newline at end of file