{"action":"opened","issue":{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/188","repository_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter","labels_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/188/comments","events_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/188/events","html_url":"https://github.com/jadjoubran/laravel5-angular-material-starter/issues/188","id":138797942,"number":188,"title":"404 for endpoint: http://localhost:8000/posts","user":{"login":"yunus89","id":10565735,"avatar_url":"https://avatars.githubusercontent.com/u/10565735?v=3","gravatar_id":"","url":"https://api.github.com/users/yunus89","html_url":"https://github.com/yunus89","followers_url":"https://api.github.com/users/yunus89/followers","following_url":"https://api.github.com/users/yunus89/following{/other_user}","gists_url":"https://api.github.com/users/yunus89/gists{/gist_id}","starred_url":"https://api.github.com/users/yunus89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yunus89/subscriptions","organizations_url":"https://api.github.com/users/yunus89/orgs","repos_url":"https://api.github.com/users/yunus89/repos","events_url":"https://api.github.com/users/yunus89/events{/privacy}","received_events_url":"https://api.github.com/users/yunus89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-06T14:53:32Z","updated_at":"2016-03-06T14:53:32Z","closed_at":null,"body":"Hi @jadjoubran ,\r\n\r\nWhen i post `/posts` using rectangular\r\nrectangular code\r\n   \r\n        this.Restangular.all('posts').post(data).then(function(response){  \t  \r\n              this.ToastService.show('Post added successfully');\r\n       \t});\r\n\r\ni see a 404 in Network tab(Inspect element). Even though i have correctly setup route in laravel `app/Http/route.php` .\r\n\r\nCode in laravel's routes.php:\r\n\r\n         $api->group([], function ($api) {\r\n                $api->post('users/login', 'LoginController@login');\r\n                $api->post('posts', 'CreatePostController@create');\r\n         });\r\n\r\nBare my ignorance; why a 404, when the route is right there? "}}