#include "api_Attachment.h" using namespace api; //add definition of your processing function here void Attachment::get(const HttpRequestPtr& req, const std::function&callback) { auto resp=HttpResponse::newHttpViewResponse("FileUpload",HttpViewData()); callback(resp); } void Attachment::upload(const HttpRequestPtr& req, const std::function&callback) { FileUpload fileUpload; fileUpload.parse(req); auto files=fileUpload.getFiles(); for(auto file:files) { LOG_DEBUG<<"file:" <setStatusCode(HttpResponse::k200OK); callback(resp); }