Updates api path to /api

This commit is contained in:
Rune Harlyk
2024-04-23 21:50:50 +02:00
committed by Rune Harlyk
parent 9ca4381442
commit 0abe0b530c
34 changed files with 55 additions and 54 deletions
@@ -61,7 +61,7 @@
#endif
#define AP_SETTINGS_FILE "/config/apSettings.json"
#define AP_SETTINGS_SERVICE_PATH "/rest/apSettings"
#define AP_SETTINGS_SERVICE_PATH "/api/apSettings"
#define AP_MODE_ALWAYS 0
#define AP_MODE_DISCONNECTED 1
+1 -1
View File
@@ -24,7 +24,7 @@
#include <APSettingsService.h>
#define MAX_AP_STATUS_SIZE 1024
#define AP_STATUS_SERVICE_PATH "/rest/apStatus"
#define AP_STATUS_SERVICE_PATH "/api/apStatus"
class APStatus
{
@@ -19,8 +19,8 @@
#include <PsychicHttp.h>
#include <SecurityManager.h>
#define VERIFY_AUTHORIZATION_PATH "/rest/verifyAuthorization"
#define SIGN_IN_PATH "/rest/signIn"
#define VERIFY_AUTHORIZATION_PATH "/api/verifyAuthorization"
#define SIGN_IN_PATH "/api/signIn"
#define MAX_AUTHENTICATION_SIZE 256
@@ -26,7 +26,7 @@
#include <HTTPUpdate.h>
// #include <SSLCertBundle.h>
#define GITHUB_FIRMWARE_PATH "/rest/downloadUpdate"
#define GITHUB_FIRMWARE_PATH "/api/downloadUpdate"
#define EVENT_DOWNLOAD_OTA "otastatus"
#define OTA_TASK_STACK_SIZE 9216
@@ -23,7 +23,7 @@
#include <FS.h>
#define FS_CONFIG_DIRECTORY "/config"
#define FACTORY_RESET_SERVICE_PATH "/rest/factoryReset"
#define FACTORY_RESET_SERVICE_PATH "/api/factoryReset"
class FactoryResetService
{
+1 -1
View File
@@ -23,7 +23,7 @@
#include <vector>
#define MAX_FEATURES_SIZE 256
#define FEATURES_SERVICE_PATH "/rest/features"
#define FEATURES_SERVICE_PATH "/api/features"
typedef struct
{
@@ -59,7 +59,7 @@
#endif
#define MQTT_SETTINGS_FILE "/config/mqttSettings.json"
#define MQTT_SETTINGS_SERVICE_PATH "/rest/mqttSettings"
#define MQTT_SETTINGS_SERVICE_PATH "/api/mqttSettings"
#define MQTT_RECONNECTION_DELAY 5000
+1 -1
View File
@@ -23,7 +23,7 @@
#include <SecurityManager.h>
#define MAX_MQTT_STATUS_SIZE 1024
#define MQTT_STATUS_SERVICE_PATH "/rest/mqttStatus"
#define MQTT_STATUS_SERVICE_PATH "/api/mqttStatus"
class MqttStatus
{
@@ -39,10 +39,10 @@
#endif
#define NTP_SETTINGS_FILE "/config/ntpSettings.json"
#define NTP_SETTINGS_SERVICE_PATH "/rest/ntpSettings"
#define NTP_SETTINGS_SERVICE_PATH "/api/ntpSettings"
#define MAX_TIME_SIZE 256
#define TIME_PATH "/rest/time"
#define TIME_PATH "/api/time"
class NTPSettings
{
+1 -1
View File
@@ -24,7 +24,7 @@
#include <SecurityManager.h>
#define MAX_NTP_STATUS_SIZE 1024
#define NTP_STATUS_SERVICE_PATH "/rest/ntpStatus"
#define NTP_STATUS_SERVICE_PATH "/api/ntpStatus"
class NTPStatus
{
+1 -1
View File
@@ -20,7 +20,7 @@
#include <PsychicHttp.h>
#include <SecurityManager.h>
#define RESTART_SERVICE_PATH "/rest/restart"
#define RESTART_SERVICE_PATH "/api/restart"
class RestartService
{
@@ -42,10 +42,10 @@
#endif
#define SECURITY_SETTINGS_FILE "/config/securitySettings.json"
#define SECURITY_SETTINGS_PATH "/rest/securitySettings"
#define SECURITY_SETTINGS_PATH "/api/securitySettings"
#define GENERATE_TOKEN_SIZE 512
#define GENERATE_TOKEN_PATH "/rest/generateToken"
#define GENERATE_TOKEN_PATH "/api/generateToken"
#if FT_ENABLED(FT_SECURITY)
+1 -1
View File
@@ -19,7 +19,7 @@
#include <PsychicHttp.h>
#include <SecurityManager.h>
#define SLEEP_SERVICE_PATH "/rest/sleep"
#define SLEEP_SERVICE_PATH "/api/sleep"
#ifndef WAKEUP_PIN_NUMBER
#define WAKEUP_PIN_NUMBER 0
+1 -1
View File
@@ -23,7 +23,7 @@
#include <ESPFS.h>
#define MAX_ESP_STATUS_SIZE 1024
#define SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus"
#define SYSTEM_STATUS_SERVICE_PATH "/api/systemStatus"
class SystemStatus
{
@@ -24,7 +24,7 @@
#include <SecurityManager.h>
#include <RestartService.h>
#define UPLOAD_FIRMWARE_PATH "/rest/uploadFirmware"
#define UPLOAD_FIRMWARE_PATH "/api/uploadFirmware"
enum FileType
{
+2 -2
View File
@@ -21,8 +21,8 @@
#include <PsychicHttp.h>
#include <SecurityManager.h>
#define SCAN_NETWORKS_SERVICE_PATH "/rest/scanNetworks"
#define LIST_NETWORKS_SERVICE_PATH "/rest/listNetworks"
#define SCAN_NETWORKS_SERVICE_PATH "/api/scanNetworks"
#define LIST_NETWORKS_SERVICE_PATH "/api/listNetworks"
#define MAX_WIFI_SCANNER_SIZE 1024
@@ -45,7 +45,7 @@
#endif
#define WIFI_SETTINGS_FILE "/config/wifiSettings.json"
#define WIFI_SETTINGS_SERVICE_PATH "/rest/wifiSettings"
#define WIFI_SETTINGS_SERVICE_PATH "/api/wifiSettings"
#define WIFI_RECONNECTION_DELAY 1000 * 30
#define RSSI_EVENT_DELAY 200
+1 -1
View File
@@ -23,7 +23,7 @@
#include <SecurityManager.h>
#define MAX_WIFI_STATUS_SIZE 1024
#define WIFI_STATUS_SERVICE_PATH "/rest/wifiStatus"
#define WIFI_STATUS_SERVICE_PATH "/api/wifiStatus"
class WiFiStatus
{