Fix REST server initialization

This commit is contained in:
2025-06-06 22:20:37 +01:00
parent 282e7f517b
commit 2fc70866a3
4 changed files with 15 additions and 4 deletions

View File

@@ -1,10 +1,14 @@
#ifndef REST_H_
#define REST_H_
#include "esp_err.h"
/**
* @brief Init rest server
*
* @brief Initialize REST server
*
* @param base_path Path on the SPIFFS filesystem where static files reside
* @return ESP_OK on success, ESP_FAIL otherwise
*/
void rest_init(void);
esp_err_t rest_init(const char *base_path);
#endif /* REST_H_ */