/** @file include.hpp * @brief Links all restful resources to the application * * This file is autogenerated by the python script link_resources.py * * YOU SHOULD NOT EDIT THIS FILE MANUALLY! * * well, only if you're editing the template file, that's ok :) */ #pragma once #include #include #include "utils/ioc/container.hpp" #include "api/restful/resource.hpp" #include "transactions/engine.hpp" #include "threading/task.hpp" #include "speedy/speedy.hpp" // for each file in this folder a script will generate an include directive if // this file contains any resources // e.g. // #include "node.hpp" // #include "relationship.hpp" template void insert(ioc::Container& container, const std::string& path) { auto app = container.resolve(); auto resource = container.singleton(); resource->link(*app, path); } void init(ioc::Container& container) { // for each resource in a file included above, the script will generate a // linkage command call to the function above // e.g. // insert(PATH); // // insert("/node"); // insert("/node/{id:\\d+}"); }