| from fastapi import FastAPI | |
| from .db import init_db | |
| from .routes import health, meta_webhooks, tools, approvals | |
| app = FastAPI(title="OpenClaw Meta Bridge", version="0.1.0") | |
| def on_startup(): | |
| init_db() | |
| app.include_router(health.router) | |
| app.include_router(meta_webhooks.router) | |
| app.include_router(tools.router) | |
| app.include_router(approvals.router) | |