mdml-cgi/include/IRouteHandler.hpp
S David f57dbae491
Some checks failed
buildbot/freebsd-jail-cmake-builder Build done.
buildbot/linux-podman-cmake-builder Build done.
buildbot/darwin-macos-cmake-builder Build done.
Fix unit tests, all tests now passing
2024-03-15 19:28:57 -04:00

27 lines
695 B
C++

/* IRouteHandler.hpp
* Copyright © 2023 Saul D. Beniquez
* License: Mozilla Public License v. 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v.2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "types.hpp"
#include <string>
namespace mdml {
struct IRouteHandler {
virtual ~IRouteHandler() {}
virtual auto process(
const std::string& name, const std::string& request_uri
) -> Result<std::string> = 0;
};
}
// clang-format off
// vim: set foldmethod=marker foldmarker=#region,#endregion textwidth=80 ts=8 sts=0 sw=8 noexpandtab ft=cpp.doxygen :