From 166d7ff1cf71b69bc9f380c38b88e53a8fc5dcb2 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Mon, 24 Mar 2025 12:29:08 +0000 Subject: [PATCH] Update code in endpoints/login.post.py --- endpoints/login.post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/login.post.py b/endpoints/login.post.py index 585d5be..8368795 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -1,10 +1,10 @@ -from fastapi import APIRouter, HTTPException +from fastapi import APIRouter, Depends, HTTPException users = [] # In-memory storage router = APIRouter() -@router.post("/login") +@router.post("/login") async def login( username: str = "student", password: str = "password"