I am implementing a server rest using Crow. In my code i want to do some action before sending the response. These action are complimented in another class. it is possible to call this method in the Crow_Route? I need something like :
CROW_ROUTE(app, "/api/rest/v1/image")
.methods("GET"_method)
([](const request& req ) {
if (req.method == "GET"_method)
{
manager->manageRequestImage();
}
else
{
return response(401);
}