move filesystem operation to backend

This commit is contained in:
Björn Dalfors
2024-05-27 22:06:14 +02:00
parent f17640c9db
commit 9d09ab2165
4 changed files with 21 additions and 12 deletions

View File

@@ -54,3 +54,7 @@ export function makeConnectionMessageEvent(connectionId: string): Event<MqttMess
export const getAppVersion: RpcEvent<void, string> = {
topic: 'getAppVersion',
}
export const writeFile: RpcEvent<{ filePath: string, data: string }, void> = {
topic: 'writeFile',
}