{"action":"created","issue":{"url":"https://api.github.com/repos/MeCKodo/vue-tutorial/issues/8","repository_url":"https://api.github.com/repos/MeCKodo/vue-tutorial","labels_url":"https://api.github.com/repos/MeCKodo/vue-tutorial/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/MeCKodo/vue-tutorial/issues/8/comments","events_url":"https://api.github.com/repos/MeCKodo/vue-tutorial/issues/8/events","html_url":"https://github.com/MeCKodo/vue-tutorial/issues/8","id":178619511,"number":8,"title":"你好，想请教个关于后端路由的问题。","user":{"login":"zphhhhh","id":17380627,"avatar_url":"https://avatars.githubusercontent.com/u/17380627?v=3","gravatar_id":"","url":"https://api.github.com/users/zphhhhh","html_url":"https://github.com/zphhhhh","followers_url":"https://api.github.com/users/zphhhhh/followers","following_url":"https://api.github.com/users/zphhhhh/following{/other_user}","gists_url":"https://api.github.com/users/zphhhhh/gists{/gist_id}","starred_url":"https://api.github.com/users/zphhhhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zphhhhh/subscriptions","organizations_url":"https://api.github.com/users/zphhhhh/orgs","repos_url":"https://api.github.com/users/zphhhhh/repos","events_url":"https://api.github.com/users/zphhhhh/events{/privacy}","received_events_url":"https://api.github.com/users/zphhhhh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T14:05:54Z","updated_at":"2016-09-23T02:22:33Z","closed_at":null,"body":"我的项目也是使用的 vue-cli 自动构建的，\r\n\r\n我看到 tutorial 中后端路由\r\n\r\n``` javascript\r\napp.get('/time', function(req, res, next) {\r\n  // 省略部分代码\r\n  });\r\n});\r\n```\r\n\r\n写在了 app.js 中，这样应该是用 node app 启动，而没有使用 npm run dev 这样包含了热更新的开发环境。我想把后端路由写在 dev-server 中却没有生效是什么原因呢？是因为使用了 vue-router 吗？这里的前端路由应该是用来控制页面的，后面路由是用来控制与服务器交互的。但是路由不都是URL吗？\r\n\r\n对不起，我是初学者，问题的表达有点乱，谢谢。"},"comment":{"url":"https://api.github.com/repos/MeCKodo/vue-tutorial/issues/comments/249085514","html_url":"https://github.com/MeCKodo/vue-tutorial/issues/8#issuecomment-249085514","issue_url":"https://api.github.com/repos/MeCKodo/vue-tutorial/issues/8","id":249085514,"user":{"login":"zphhhhh","id":17380627,"avatar_url":"https://avatars.githubusercontent.com/u/17380627?v=3","gravatar_id":"","url":"https://api.github.com/users/zphhhhh","html_url":"https://github.com/zphhhhh","followers_url":"https://api.github.com/users/zphhhhh/followers","following_url":"https://api.github.com/users/zphhhhh/following{/other_user}","gists_url":"https://api.github.com/users/zphhhhh/gists{/gist_id}","starred_url":"https://api.github.com/users/zphhhhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zphhhhh/subscriptions","organizations_url":"https://api.github.com/users/zphhhhh/orgs","repos_url":"https://api.github.com/users/zphhhhh/repos","events_url":"https://api.github.com/users/zphhhhh/events{/privacy}","received_events_url":"https://api.github.com/users/zphhhhh/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T02:22:33Z","updated_at":"2016-09-23T02:22:33Z","body":"问题已解决，再次谢谢！"}}
{"actor":{"display_login":"zphhhhh"}}