Setup project, started outlining endpoints and tests.

This commit is contained in:
Sparkchaser13 committed 2026-09-23 16:00:14 -06:00
commit 33cd28376d
41 files changed
+5177

No files matched your search

Whitespace-only changes.
+49
View File
@@ -0,0 +1,49 @@
"""Endpoints for authentication."""
from fastapi import APIRouter
from app.core.common import Message
router = APIRouter(prefix="/auth", tags=["auth"])
@router.post(path="/login")
async def login_user() -> Message:
"""Start user session/token."""
return {"status": "healthy"}
@router.post(path="/refresh")
async def refresh_login_session() -> Message:
"""Refresh user login."""
return {"status": "healthy"}
@router.post(path="/logout")
async def logout_user() -> Message:
"""End user session/token."""
return {"status": "healthy"}
@router.post(path="/invite/accept")
async def accept_invite() -> Message:
"""Accept user invite."""
return {"status": "healthy"}
@router.post(path="/password-reset/request")
async def request_password_reset() -> Message:
"""Initiate password request."""
return {"status": "healthy"}
@router.post(path="/password-reset/confirm")
async def confirm_password_reset() -> Message:
"""Confirm password request."""
return {"status": "healthy"}
@router.get(path="/{user_id}")
async def retrieve_authenticated_user(user_id: str) -> Message:
"""Retrieve current authenticated user by id."""
return {"status": user_id}