Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Response Controller::process(const Request& rq) {
- if (rq.uri() == "/v1/foos") {
- return {list_all_foos(), 200};
- }
- return {"", 404};
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement