mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Now the root node's type inthe webserver is a WebNode instead of a WebRoot.
This commit is contained in:
parent
163432e147
commit
f00e5c5c9e
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user