Can get sync thread status

This commit is contained in:
2025-11-19 16:34:00 +01:00
parent 1e00d24a8b
commit 7b691962a0
4 changed files with 38 additions and 3 deletions

View File

@@ -129,6 +129,10 @@ async fn main() -> std::io::Result<()> {
"/api/matrix_sync/stop",
web::post().to(matrix_sync_thread_controller::stop_sync),
)
.route(
"/api/matrix_sync/status",
web::get().to(matrix_sync_thread_controller::status),
)
})
.workers(4)
.bind(&AppConfig::get().listen_address)?