Can request sync thread stop

This commit is contained in:
2025-11-19 15:51:15 +01:00
parent cfdf98b47a
commit 1e00d24a8b
3 changed files with 31 additions and 0 deletions

View File

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