Seafire-Routing/seafire/routing/flatten-route.hxx
2025-03-08 20:55:07 +01:00

29 lines
614 B
C++

#ifndef seafire__routing__flatten_route_hxx_
#define seafire__routing__flatten_route_hxx_
#include <seafire/routing/endpoint.hxx>
#include <seafire/routing/route.hxx>
#include <seafire/server/middleware.hxx>
#include <vector>
namespace seafire::routing
{
void
flatten_route(std::vector<endpoint_t>& endpoints,
std::vector<server::middleware_t>,
route_t const& r,
std::string const& root);
void
flatten_route(std::vector<endpoint_t>&, route_t const&);
std::vector<endpoint_t>
flatten_route(route_t const&);
} // namespace seafire::routing
#endif