Setup project, started outlining endpoints and tests.
This commit is contained in:
commit
33cd28376d
41 files changed
+5177
No files matched your search
@@ -0,0 +1,20 @@
|
||||
"""Where the magic happens."""
|
||||
|
||||
from fastapi import APIRouter, FastAPI
|
||||
|
||||
from app.core.common import Message
|
||||
from app.platform.auth import router as auth
|
||||
from app.platform.users import router as users
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
api_router = APIRouter(prefix="/api")
|
||||
api_router.include_router(users.router)
|
||||
api_router.include_router(auth.router)
|
||||
app.include_router(api_router)
|
||||
|
||||
|
||||
@app.get(path="/")
|
||||
def status_check() -> Message:
|
||||
"""Endpoind to check if server is running."""
|
||||
return {"status": "healthy"}
|
||||
Reference in new issue
Block a user