Changed restart endpoint from .../settings to .../system
This commit is contained in:
@@ -53,10 +53,9 @@ Features, already implemented, or still in progress for the v1.0.0 release!
|
||||
- [X] /api/v1/eq/mid/<0-46>
|
||||
- [X] /api/v1/eq/high/get
|
||||
- [X] /api/v1/eq/high/<0-46>
|
||||
- [X] /api/v1/settings/restart/
|
||||
- [X] /api/v1/system/restart/
|
||||
- [ ] /api/v1/system/name
|
||||
- [ ] /api/v1/system/info
|
||||
- [ ] /api/v1/system/name
|
||||
- [ ] /api/v1/system/wifi/change
|
||||
- [ ] /api/v1/system/wifi/get_ssid
|
||||
- [ ] /api/v1/files/get
|
||||
|
@@ -447,7 +447,7 @@ void setupApiWeb() {
|
||||
api_server.on(UriBraces("/api/v1/eq/low/{}"), HTTP_GET, api_v1_eq_low);
|
||||
api_server.on(UriBraces("/api/v1/eq/mid/{}"), HTTP_GET, api_v1_eq_mid);
|
||||
api_server.on(UriBraces("/api/v1/eq/high/{}"), HTTP_GET, api_v1_eq_high);
|
||||
api_server.on("/api/v1/settings/restart", HTTP_GET, api_v1_settings_restart);
|
||||
api_server.on("/api/v1/system/restart", HTTP_GET, api_v1_settings_restart);
|
||||
|
||||
Serial.println("[HTTP] [API] Starting API server (http) on port " + String(webport_api));
|
||||
api_server.begin();
|
||||
|
Reference in New Issue
Block a user