20 lines
347 B
C++
20 lines
347 B
C++
#pragma once
|
|
|
|
#include <mongoose.h>
|
|
|
|
#include <string>
|
|
|
|
class StaticFileHandler
|
|
{
|
|
public:
|
|
int answer_pathreq(const char * const path, struct mg_connection *conn);
|
|
std::string cleanpath(const char * const);
|
|
StaticFileHandler() {};
|
|
~StaticFileHandler() {};
|
|
|
|
private:
|
|
std::string _cleanpath (const char * const path);
|
|
|
|
|
|
};
|