From e04a18ffed30ed2fb8e047ef856a40456dcf9f0f Mon Sep 17 00:00:00 2001 From: David Zwart Date: Sun, 1 Oct 2023 09:04:41 +0200 Subject: [PATCH] release: 1.3.5 client with settings API route change --- package.json | 2 +- src/backend/server.api.ts | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index ec707dc3..e7cf1f2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fdm-monster/client", - "version": "1.3.4", + "version": "1.3.5", "private": false, "author": "David Zwart", "license": "AGPL-3.0-or-later", diff --git a/src/backend/server.api.ts b/src/backend/server.api.ts index 61007bcb..ef90857f 100644 --- a/src/backend/server.api.ts +++ b/src/backend/server.api.ts @@ -1,28 +1,34 @@ export class ServerApi { static base = "/api"; - static amIAliveRoute = `${ServerApi.base}/amialive`; + static printerRoute = `${ServerApi.base}/printer`; static printerBatchRoute = `${ServerApi.printerRoute}/batch`; static printerTestConnectionRoute = `${ServerApi.printerRoute}/test-connection`; + static printerSettingsRoute = `${ServerApi.base}/printer-settings`; + static floorRoute = `${ServerApi.base}/floor`; + static printCompletionRoute = `${ServerApi.base}/print-completion`; + static printerFilesRoute = `${ServerApi.base}/printer-files`; static printerFilesBatchReprintRoute = `${ServerApi.printerFilesRoute}/batch/reprint-files`; - static printerFilesUploadStubRoute = `${ServerApi.base}/printer-files/upload-stub`; - static serverPrivateRoute = `${ServerApi.base}/server`; - static serverRestartCommandRoute = `${ServerApi.serverPrivateRoute}/restart`; static printerFilesPurgeRoute = `${ServerApi.printerFilesRoute}/purge`; + static customGCodeRoute = `${ServerApi.base}/custom-gcode`; + static userRoute = `${ServerApi.base}/user`; static userProfileRoute = `${ServerApi.userRoute}/profile`; + static settingsRoute = `${ServerApi.base}/settings`; static serverSettingsRoute = `${ServerApi.settingsRoute}/server`; - static frontendSettingsRoute = `${ServerApi.serverSettingsRoute}/frontend`; - static serverWhitelistSettingRoute = `${ServerApi.serverSettingsRoute}/whitelist`; - static serverSentryDiagnosticsSettingRoute = `${ServerApi.serverSettingsRoute}/sentry-diagnostics`; - static serverRestartRoute = `${ServerApi.serverSettingsRoute}/restart`; - static customGCodeSettingsRoutes = `${ServerApi.settingsRoute}/custom-gcode`; + static frontendSettingsRoute = `${ServerApi.settingsRoute}/frontend`; + static serverWhitelistSettingRoute = `${ServerApi.settingsRoute}/whitelist`; + static serverSentryDiagnosticsSettingRoute = `${ServerApi.settingsRoute}/sentry-diagnostics`; + + static serverPrivateRoute = `${ServerApi.base}/server`; + static serverRestartCommandRoute = `${ServerApi.serverPrivateRoute}/restart`; + static pluginRoute = `${ServerApi.base}/plugin`; static pluginFirmwareUpdateRoute = `${ServerApi.pluginRoute}/firmware-update`; static pluginFirmwareReleasesRoute = `${ServerApi.pluginFirmwareUpdateRoute}/releases`;