#pragma once #include "api/restful/resource.hpp" #pragma url /relationship class Relationships : public Resource { public: using Resource::Resource; void post(sp::Request& req, sp::Response& res) { return res.send("POST /db/data/relationship"); } }; #pragma url /relationship/{id:\\d+} class Relationship : public Resource { public: using Resource::Resource; void get(sp::Request& req, sp::Response& res) { return res.send("GET /db/data/relationship"); } void put(sp::Request& req, sp::Response& res) { return res.send("PUT /db/data/relationship"); } void del(sp::Request& req, sp::Response& res) { return res.send("DELETE /db/data/relationship"); } };