Mock auth

This commit is contained in:
Jacob Windsor
2025-02-19 13:55:42 +01:00
parent 851906a029
commit e0f8112d13
7 changed files with 66 additions and 18 deletions
+6 -4
View File
@@ -1,11 +1,13 @@
from fastapi import APIRouter
from fastapi import APIRouter, Depends
from typing import Annotated
from ..providers.auth_provider import AuthProvider
router = APIRouter()
@router.post("")
async def create_house():
raise NotImplementedError("This endpoint is not implemented yet.")
async def create_house(auth_provider: Annotated[AuthProvider, Depends()]):
return auth_provider.user
@router.get("/all")
@router.get("")
async def get_all_houses():
raise NotImplementedError("This endpoint is not implemented yet.")