Update code in endpoints/login.post.py

This commit is contained in:
Backend IM Bot 2025-03-24 12:29:08 +00:00
parent cc63ff2ec3
commit 166d7ff1cf

View File

@ -1,10 +1,10 @@
from fastapi import APIRouter, HTTPException from fastapi import APIRouter, Depends, HTTPException
users = [] # In-memory storage users = [] # In-memory storage
router = APIRouter() router = APIRouter()
@router.post("/login") @router.post("/login")
async def login( async def login(
username: str = "student", username: str = "student",
password: str = "password" password: str = "password"