10 lines
265 B
Python
10 lines
265 B
Python
from fastapi import FastAPI
|
|
from fastscheduler.fastapi_integration import create_scheduler_routes
|
|
|
|
from scheduler.scheduler import scheduler
|
|
|
|
|
|
def init_scheduler_router(app: FastAPI):
|
|
app.include_router(create_scheduler_routes(scheduler))
|
|
scheduler.start()
|