wip plugin

This commit is contained in:
2018-05-10 23:30:07 +02:00
parent f00b7fefb0
commit 49972f892b
10 changed files with 69 additions and 71 deletions

View File

@@ -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;