Function router::insert

Route the specified URL path to a resource

Synopsis

Declared in header <router.hpp>

template<class U>
void
insert(
    core::string_view pattern,
    U&& v);

Parameters

Name Description

path

A url path with dynamic segments

resource

A resource the path corresponds to