# Entity: User from fastapi import APIRouter, Depends from typing import List from sqlalchemy.orm import Session from core.database import get_db from models.user import User from schemas.user import UserSchema from helpers.user_helpers import get_all_users router = APIRouter() @router.get("/users", status_code=200, response_model=List[UserSchema]) async def get_users( db: Session = Depends(get_db) ): users = get_all_users(db) return users