mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
10 lines
328 B
Python
10 lines
328 B
Python
from fastapi import FastAPI
|
|
from backend.routes.moderation import router as moderation_router
|
|
|
|
if __name__ == "__main__":
|
|
app = FastAPI(title="Moderation Service")
|
|
app.include_router(moderation_router, prefix="/moderation")
|
|
|
|
import os, uvicorn
|
|
uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", 8301)))
|