#ifndef HTTP_SERVE_H #define HTTP_SERVE_H #include "esp_http_server.h" #include "configuration.h" struct HTTP_serve_config { char mountpoint[32]; char getUri[32]; char postUri[32]; char apiUri[32]; }; typedef struct HTTP_serve_config HTTP_serve_config_t; esp_err_t get_handler(httpd_req_t *req); esp_err_t post_handler(httpd_req_t *req); esp_err_t api_get_handler(httpd_req_t *req); esp_err_t start_server(HTTP_serve_config_t config, configuration_data_t* data); #endif