15 lines
224 B
Python
15 lines
224 B
Python
from fastapi import FastAPI
|
|
|
|
from apis import register_routers
|
|
from config.database import init_db
|
|
|
|
app = FastAPI(title="Log Alert Service")
|
|
|
|
|
|
@app.on_event("startup")
|
|
def on_startup():
|
|
init_db()
|
|
|
|
|
|
register_routers(app)
|