wip plugin
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <core/web-controller.h>
|
||||
#include <rest/ubus.h>
|
||||
@@ -56,9 +55,10 @@ class RestController : public WebController
|
||||
|
||||
bool from_json(struct json_object *a_node);
|
||||
|
||||
bool find(const std::string &an_url);
|
||||
bool find(uint8_t a_method, const std::string &an_url);
|
||||
|
||||
const Ubus &get_ubus(void) const;
|
||||
const std::string &get_endpoint(void) const;
|
||||
|
||||
bool is_raw_response(void);
|
||||
|
||||
@@ -71,7 +71,7 @@ class RestController : public WebController
|
||||
*/
|
||||
protected:
|
||||
uint8_t m_method;
|
||||
std::vector<std::string> m_endpoint;
|
||||
std::string m_endpoint;
|
||||
Ubus m_ubus;
|
||||
bool mf_raw_response;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user