Actually bind get_server(), and get_web_root() in WebServerRequest.

This commit is contained in:
Relintai 2022-07-21 22:37:55 +02:00
parent 1f62ad89ff
commit ed9aa722a3
2 changed files with 5 additions and 9 deletions

View File

@ -445,8 +445,9 @@ void WebServerRequest::update() {
WebServer *WebServerRequest::get_server() {
return server;
}
Node *WebServerRequest::get_server_bind() {
return server;
WebNode *WebServerRequest::get_web_root() {
return web_root;
}
WebServerRequest::WebServerRequest() {
@ -578,9 +579,6 @@ void WebServerRequest::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_url_root_add", "add"), &WebServerRequest::get_url_root_add);
ClassDB::bind_method(D_METHOD("get_url_site_add", "add"), &WebServerRequest::get_url_site_add);
//virtual void update();
//TODO
//WebServer *get_server();
//Node *get_server_bind();
ClassDB::bind_method(D_METHOD("get_server"), &WebServerRequest::get_server);
ClassDB::bind_method(D_METHOD("get_web_root"), &WebServerRequest::get_web_root);
}

View File

@ -115,9 +115,7 @@ public:
virtual void update();
WebServer *get_server();
Node *get_server_bind();
WebNode *get_web_root();
Node *get_web_root_bind();
WebServerRequest();
~WebServerRequest();