Compare commits
2 Commits
b92e35db55
...
9b8d03064b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9b8d03064b | ||
![]() |
89487ec7dd |
7
app/api/endpoints/forgot-password.py
Normal file
7
app/api/endpoints/forgot-password.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from fastapi import APIRouter
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.post("/forgot-password")
|
||||||
|
async def forgot_password(username: str, password: str):
|
||||||
|
return {"message": "Forgot password!", "username": username}
|
@ -1,7 +1,7 @@
|
|||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
@router.post("/login")
|
@router.post("/login")
|
||||||
async def login(username: str, password: str):
|
async def login(username: str, password: str):
|
||||||
return {"message": "User logged in successfully", "username": username}
|
return {"message": "User logged in successfully!", "username": username}
|
Loading…
x
Reference in New Issue
Block a user