| .. | .. |
|---|
| 10 | 10 | from starlette.datastructures import MutableHeaders |
|---|
| 11 | 11 | from starlette.types import ASGIApp, Receive, Scope, Send |
|---|
| 12 | 12 | |
|---|
| 13 | | -from app.routers import backups, promote, rebuild, registry, restore, services, status, sync_data, system |
|---|
| 13 | +from app.routers import backups, cancel, promote, rebuild, registry, restore, schedule, services, status, sync_data, system |
|---|
| 14 | 14 | |
|---|
| 15 | 15 | logging.basicConfig( |
|---|
| 16 | 16 | level=logging.INFO, |
|---|
| .. | .. |
|---|
| 64 | 64 | app.include_router(sync_data.router, prefix="/api/sync", tags=["sync"]) |
|---|
| 65 | 65 | app.include_router(registry.router, prefix="/api/registry", tags=["registry"]) |
|---|
| 66 | 66 | app.include_router(rebuild.router, prefix="/api/rebuild", tags=["rebuild"]) |
|---|
| 67 | +app.include_router(schedule.router, prefix="/api/schedule", tags=["schedule"]) |
|---|
| 68 | +app.include_router(cancel.router, prefix="/api/operations", tags=["operations"]) |
|---|
| 67 | 69 | |
|---|
| 68 | 70 | # --------------------------------------------------------------------------- |
|---|
| 69 | 71 | # Index route — serves index.html with content-hashed asset URLs. |
|---|