From c1a46bd2bd7c242c5b303ca40165cb19002d63e3 Mon Sep 17 00:00:00 2001 From: "Borawski.Lukasz" Date: Thu, 8 Feb 2018 13:31:59 +0100 Subject: 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 --- include/webserver_common.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/webserver_common.hpp (limited to 'include') 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; + -- cgit v1.2.3