diff --git a/server_http.hpp b/server_http.hpp index 43e32d2..e64beec 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -152,10 +152,11 @@ namespace SimpleWeb { } }; public: - std::map::Response>, std::shared_ptr::Request>)> > > resource; + /// Warning: do not add or remove resources after start() is called + std::map::Response>, std::shared_ptr::Request>)> > > resource; - std::map::Response>, std::shared_ptr::Request>)> > default_resource; std::function::Request>, const boost::system::error_code&)> on_error;