{"action":"closed","issue":{"url":"https://api.github.com/repos/actix/actix-web/issues/481","repository_url":"https://api.github.com/repos/actix/actix-web","labels_url":"https://api.github.com/repos/actix/actix-web/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/actix/actix-web/issues/481/comments","events_url":"https://api.github.com/repos/actix/actix-web/issues/481/events","html_url":"https://github.com/actix/actix-web/issues/481","id":353627337,"node_id":"MDU6SXNzdWUzNTM2MjczMzc=","number":481,"title":"How to build restful api?","user":{"login":"damody","id":6639075,"node_id":"MDQ6VXNlcjY2MzkwNzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6639075?v=4","gravatar_id":"","url":"https://api.github.com/users/damody","html_url":"https://github.com/damody","followers_url":"https://api.github.com/users/damody/followers","following_url":"https://api.github.com/users/damody/following{/other_user}","gists_url":"https://api.github.com/users/damody/gists{/gist_id}","starred_url":"https://api.github.com/users/damody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damody/subscriptions","organizations_url":"https://api.github.com/users/damody/orgs","repos_url":"https://api.github.com/users/damody/repos","events_url":"https://api.github.com/users/damody/events{/privacy}","received_events_url":"https://api.github.com/users/damody/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-24T03:08:19Z","updated_at":"2018-08-24T06:49:13Z","closed_at":"2018-08-24T06:49:13Z","author_association":"NONE","body":"```\r\nserver::new(move || {\r\n        App::with_state(AppState{db: addr.clone()})\r\n            // enable logger\r\n            .middleware(middleware::Logger::default()\r\n            .resource(\"/members\", |r| r.method(http::Method::POST).f(members_post))\r\n            .resource(\"/members\", |r| r.method(http::Method::PUT).f(members_put))\r\n            .resource(\"/members\", |r| r.method(http::Method::GET).f(members_get))\r\n            .resource(\"/members\", |r| r.method(http::Method::DELETE).f(members_delete))\r\n    }).bind(\"127.0.0.1:8080\")\r\n        .unwrap()\r\n        .start();\r\n```\r\nIt's not work. Why should I do?\r\n"}}
{"actor":{"display_login":"damody"}}