summaryrefslogtreecommitdiff
path: root/include/webserver_common.hpp
diff options
context:
space:
mode:
authorBorawski.Lukasz <lukasz.borawski@intel.com>2018-02-08 15:31:59 +0300
committerEd Tanous <ed.tanous@intel.com>2018-03-28 00:02:27 +0300
commitc1a46bd2bd7c242c5b303ca40165cb19002d63e3 (patch)
treecc0067c328eb5d4773c7126d32383f025594cd87 /include/webserver_common.hpp
parent43a095ab36b35bcb9192218fd11e0ff86ec63bf9 (diff)
downloadbmcweb-c1a46bd2bd7c242c5b303ca40165cb19002d63e3.tar.xz
Improved Refish subroutes
- getSubroutes() is now a method of the Node class - getSubroutes() is called only once per node at construction time, not at each GET request - template parameter removed from the Node class Change-Id: Ie4eb8766717aae566c13c295458fe0dba8ab84c0 Signed-off-by: Borawski.Lukasz <lukasz.borawski@intel.com>
Diffstat (limited to 'include/webserver_common.hpp')
-rw-r--r--include/webserver_common.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/webserver_common.hpp b/include/webserver_common.hpp
new file mode 100644
index 0000000000..fcfd3218d8
--- /dev/null
+++ b/include/webserver_common.hpp
@@ -0,0 +1,24 @@
+/*
+// Copyright (c) 2018 Intel Corporation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+*/
+#pragma once
+
+#include "token_authorization_middleware.hpp"
+#include "webserver_common.hpp"
+
+using CrowApp = crow::App<crow::PersistentData::Middleware,
+ crow::TokenAuthorization::Middleware,
+ crow::SecurityHeadersMiddleware>;
+