mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-27 04:40:39 +03:00
16 lines
389 B
C++
16 lines
389 B
C++
#pragma once
|
|
|
|
#ifndef SERVERHELP_H
|
|
#define SERVERHELP_H
|
|
|
|
#include "defines.h"
|
|
|
|
#include <string>
|
|
#include "esp_http_server.h"
|
|
|
|
const char* get_path_from_uri(char *dest, const char *base_path, const char *uri, size_t destsize);
|
|
esp_err_t send_file(httpd_req_t *req, std::string filename);
|
|
esp_err_t set_content_type_from_file(httpd_req_t *req, const char *filename);
|
|
|
|
#endif //SERVERHELP_H
|