summaryrefslogtreecommitdiff
path: root/include/persistent_data_middleware.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/persistent_data_middleware.hpp')
-rw-r--r--include/persistent_data_middleware.hpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/persistent_data_middleware.hpp b/include/persistent_data_middleware.hpp
index 348079ba61..de3a6ba5bb 100644
--- a/include/persistent_data_middleware.hpp
+++ b/include/persistent_data_middleware.hpp
@@ -8,13 +8,14 @@
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
-#include <filesystem>
#include <nlohmann/json.hpp>
#include <pam_authenticate.hpp>
-#include <random>
#include <sessions.hpp>
#include <webassets.hpp>
+#include <filesystem>
+#include <random>
+
namespace crow
{
@@ -32,8 +33,7 @@ class Middleware
static constexpr const char* filename = "bmcweb_persistent_data.json";
struct Context
- {
- };
+ {};
Middleware()
{
@@ -49,12 +49,10 @@ class Middleware
}
void beforeHandle(crow::Request& req, Response& res, Context& ctx)
- {
- }
+ {}
void afterHandle(Request& req, Response& res, Context& ctx)
- {
- }
+ {}
// TODO(ed) this should really use protobuf, or some other serialization
// library, but adding another dependency is somewhat outside the scope of