wip to new rest method
This commit is contained in:
@@ -56,8 +56,11 @@ class RestController : public WebController
|
||||
bool from_json(struct json_object *a_node);
|
||||
|
||||
bool find(uint8_t a_method, const std::string &an_url);
|
||||
std::string get_parameter(const std::string &an_url);
|
||||
|
||||
const Ubus &get_ubus(void) const;
|
||||
|
||||
const uint8_t get_method(void) const;
|
||||
const std::string &get_endpoint(void) const;
|
||||
|
||||
bool is_raw_response(void);
|
||||
@@ -82,6 +85,13 @@ class RestController : public WebController
|
||||
std::string m_method_put;
|
||||
uint16_t m_timeout;
|
||||
*/
|
||||
|
||||
private:
|
||||
void manage_endpoint(void);
|
||||
std::string m_parameter_name;
|
||||
std::size_t m_parameter_position;
|
||||
std::string m_controller;
|
||||
|
||||
};
|
||||
|
||||
#endif /* _REST_CONTROLLER_H */
|
||||
|
||||
Reference in New Issue
Block a user