File size: 528 Bytes
1c1e321
 
 
a00f760
1c1e321
 
a00f760
1c1e321
 
a00f760
 
085d4b8
 
 
 
6acfb33
 
1366c85
 
1c1e321
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from fastapi import FastAPI, BackgroundTasks
from .Editor.editorRoutes import videditor_router
from App import bot
from App.utilis import WorkerClient, SERVER_STATE

app = FastAPI()
manager = WorkerClient()


@app.on_event("startup")
async def startup_event():
    await bot.start()
    #if SERVER_STATE.MASTER:

    #response = await manager.register_worker()
    #if not response:
    #    print("Error registering worker")


@app.get("/")
def read_root():
    return {"Hello": "World"}


app.include_router(videditor_router)