Make Router more sexy
This commit is contained in:
parent
5bb68a7d02
commit
d547bb9f95
1 changed files with 144 additions and 173 deletions
|
|
@ -29,10 +29,7 @@ void Server::Start() {
|
|||
fprintf(stdout, "[VWeb] Running Server On: 0.0.0.0:%d\n",
|
||||
m_ServerConfig->Port);
|
||||
}
|
||||
void Server::AddRoute(const std::string &path, const Ref<Route> &route) {
|
||||
m_Router->AddRoute(path, route);
|
||||
}
|
||||
void Server::RemoveRoute(const std::string &path) {
|
||||
void Server::RemoveRoute(const std::string &path) const {
|
||||
m_Router->DeleteRoute(path);
|
||||
}
|
||||
void Server::Execute() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue