Update code in endpoints/login.post.py
This commit is contained in:
parent
cc63ff2ec3
commit
166d7ff1cf
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user