Basic injects
This commit is contained in:
parent
2d3699ad00
commit
232920683a
7 changed files with 29 additions and 19 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from fastapi import FastAPI, Request
|
||||
from fastapi.responses import HTMLResponse
|
||||
from injectable import load_injection_container
|
||||
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
||||
|
||||
from app.api.v1 import router as api_v1_router
|
||||
|
|
@ -18,6 +19,7 @@ app = FastAPI(title="Karl", version="0.1.0")
|
|||
app.include_router(api_v1_router, prefix="/api/v1", tags=["v1"])
|
||||
# app.add_event_handler()
|
||||
|
||||
load_injection_container()
|
||||
webhook_service = WebhookProcessor()
|
||||
print(webhook_service.health)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue