Mock auth
This commit is contained in:
@@ -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