Ready to implement sync thread logic
This commit is contained in:
13
matrixgw_frontend/src/api/MatrixSyncApi.ts
Normal file
13
matrixgw_frontend/src/api/MatrixSyncApi.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { APIClient } from "./ApiClient";
|
||||
|
||||
export class MatrixSyncApi {
|
||||
/**
|
||||
* Force sync thread startup
|
||||
*/
|
||||
static async Start(): Promise<void> {
|
||||
await APIClient.exec({
|
||||
method: "POST",
|
||||
uri: "/matrix_sync/start",
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user