Now the root node's type inthe webserver is a WebNode instead of a WebRoot.

This commit is contained in:
Relintai 2022-01-08 11:58:35 +01:00
parent 163432e147
commit f00e5c5c9e
2 changed files with 6 additions and 6 deletions

View File

@ -1,14 +1,14 @@
#include "web_server.h"
#include "request.h"
#include "core/http/web_root.h"
#include "core/http/web_node.h"
WebRoot *WebServer::get_web_root() {
WebNode *WebServer::get_web_root() {
return _web_root;
}
void WebServer::set_root(Node *root) {
WebRoot *web_root = Object::cast_to<WebRoot>(root);
WebNode *web_root = Object::cast_to<WebNode>(root);
ERR_FAIL_COND(!web_root);

View File

@ -4,13 +4,13 @@
#include "core/nodes/node_tree.h"
class Request;
class WebRoot;
class WebNode;
class WebServer : public NodeTree {
RCPP_OBJECT(WebServer, NodeTree);
public:
WebRoot *get_web_root();
WebNode *get_web_root();
void set_root(Node *root);
@ -20,7 +20,7 @@ public:
virtual ~WebServer();
protected:
WebRoot *_web_root;
WebNode *_web_root;
};