summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-03-28 00:08:59 +0300
committerEd Tanous <ed@tanous.net>2024-04-11 19:38:16 +0300
commitd9e89dfd49538c54d280dce3750f4af264cfd5fc (patch)
treea6884a3df21336eb24c7fbeaedf225361ca46cb2 /include
parent76b038f20fed54ff61450a175160dc0af21b3cf9 (diff)
downloadbmcweb-d9e89dfd49538c54d280dce3750f4af264cfd5fc.tar.xz
Simplify router
Now that we only support string types in the router we no longer need to build a "Tag" to be used for constructing argument types. Now, we can just track the number of arguments, which simplifies the code significantly, and removes the need to convert to and from the tag to parameter counts. This in turn deletes a lot of code in the router, removing the need for tracking tag types. Tested: Redfish service validator passes. Unit tests pass. Change-Id: Ide1d665dc1984552681e8c05952b38073d5e32dd Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
-rw-r--r--include/authentication.hpp1
-rw-r--r--include/login_routes.hpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/include/authentication.hpp b/include/authentication.hpp
index f3246c0fcf..fbc226750f 100644
--- a/include/authentication.hpp
+++ b/include/authentication.hpp
@@ -1,6 +1,5 @@
#pragma once
-#include "common.hpp"
#include "forward_unauthorized.hpp"
#include "http_request.hpp"
#include "http_response.hpp"
diff --git a/include/login_routes.hpp b/include/login_routes.hpp
index ae99757ef8..f78c159cf9 100644
--- a/include/login_routes.hpp
+++ b/include/login_routes.hpp
@@ -1,7 +1,6 @@
#pragma once
#include "app.hpp"
-#include "common.hpp"
#include "http_request.hpp"
#include "http_response.hpp"
#include "multipart_parser.hpp"