--- /dev/null
+###############################################################################
+# #
+# Pakfire - The IPFire package management system #
+# Copyright (C) 2025 Pakfire development team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+import fastapi
+
+from . import apiv1
+from . import backend
+
+from ..users import User
+
+# Create a new router for all builds endpoints
+router = fastapi.APIRouter(
+ prefix="/users",
+ tags=["Users"],
+)
+
+async def get_user_from_path(username: str = fastapi.Path(...)) -> User | None:
+ """
+ Fetches the user from the name in the path
+ """
+ return await backend.users.get_by_name(username)
+
+@router.get("/{username}")
+async def get_user(user: User = fastapi.Depends(get_user_from_path)) -> User:
+ if not user:
+ raise fastapi.HTTPException(404, "Could not find user")
+
+ print(user)
+
+ return user
+
+# Add everything to the APIv1
+apiv1.include_router(router)