from database import init_db from controller.user import setup_user_routes from controller.comments import setup_comment_routes from controller.newsletter import setup_newsletter_routes from nexios import NexiosApp import uvicorn app = NexiosApp() @app.on_startup async def startup(): await init_db() setup_newsletter_routes(app) setup_comment_routes(app) setup_user_routes(app) # Run the application if __name__ == "__main__": uvicorn.run("main:app")