Mock auth
This commit is contained in:
1 parent
851906a029
commit
e0f8112d13
7 files changed
+66
-18
No files matched your search
@@ -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.")
|
||||
Reference in new issue
Block a user