Can request sync thread stop
This commit is contained in:
@@ -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)?
|
||||
|
||||
Reference in New Issue
Block a user