17 lines
528 B
Python
17 lines
528 B
Python
"""Organization-related API stubs."""
|
|
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter, status
|
|
|
|
router = APIRouter(prefix="/organizations", tags=["organizations"])
|
|
|
|
|
|
def _stub(endpoint: str) -> dict[str, str]:
|
|
return {"detail": f"{endpoint} is not implemented yet"}
|
|
|
|
|
|
@router.get("/me", status_code=status.HTTP_501_NOT_IMPLEMENTED)
|
|
async def list_user_organizations() -> dict[str, str]:
|
|
"""Placeholder for returning organizations linked to the current user."""
|
|
return _stub("GET /organizations/me")
|