mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-26 21:57:16 +01:00
Added missing helper method to WebServerRequest.
This commit is contained in:
parent
3fccbc6d23
commit
eb33d812d0
@ -443,6 +443,9 @@ String WebServerRequest::get_url_root_parent_add(const String &add) const {
|
||||
String WebServerRequest::get_url_root_add(const String &add) const {
|
||||
return get_url_root() + add;
|
||||
}
|
||||
String WebServerRequest::get_url_root_current_add(const String &add) const {
|
||||
return get_url_root_current() + add;
|
||||
}
|
||||
String WebServerRequest::get_url_site_add(const String &add) const {
|
||||
return get_url_site() + add;
|
||||
}
|
||||
@ -597,6 +600,7 @@ void WebServerRequest::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_url_root_parent_add", "add"), &WebServerRequest::get_url_root_parent_add);
|
||||
ClassDB::bind_method(D_METHOD("get_url_root_add", "add"), &WebServerRequest::get_url_root_add);
|
||||
ClassDB::bind_method(D_METHOD("get_url_root_current_add", "add"), &WebServerRequest::get_url_root_current_add);
|
||||
ClassDB::bind_method(D_METHOD("get_url_site_add", "add"), &WebServerRequest::get_url_site_add);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_server"), &WebServerRequest::get_server);
|
||||
|
@ -115,6 +115,7 @@ public:
|
||||
|
||||
String get_url_root_parent_add(const String &add) const;
|
||||
String get_url_root_add(const String &add) const;
|
||||
String get_url_root_current_add(const String &add) const;
|
||||
String get_url_site_add(const String &add) const;
|
||||
|
||||
virtual void update();
|
||||
|
Loading…
Reference in New Issue
Block a user