Skip to content

Commit

Permalink
Merge pull request #589 from fdm-monster/fix/settings-api-change
Browse files Browse the repository at this point in the history
release: 1.3.5 client with settings API route change
  • Loading branch information
davidzwa authored Oct 1, 2023
2 parents 35dd41d + e04a18f commit dc48535
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 15 additions & 9 deletions src/backend/server.api.ts
Original file line number Diff line number Diff line change
@@ -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`;
Expand Down

0 comments on commit dc48535

Please sign in to comment.