First really working router Version

This commit is contained in:
Pablu23
2024-07-08 16:08:10 +02:00
parent 752cb229c3
commit 986be64e03
12 changed files with 424 additions and 73 deletions

23
path.hpp Normal file
View File

@@ -0,0 +1,23 @@
#ifndef PATH_H
#define PATH_H
#include <map>
#include <optional>
#include <string>
class Path {
private:
// std::string m_path;
std::string m_base;
std::string m_query;
std::map<std::string, std::string> m_variables;
public:
Path(std::string path);
std::optional<std::string> Get(std::string name);
std::string Query();
std::string Base();
void Match(std::string pattern);
};
#endif // !PATH_H