27 lines
695 B
C++
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 :
|