Rename endpoint for consistent endpoint names

In line 126 the endpoint url is api_token. Therefore it should be the same in line 178.
This commit is contained in:
Guido Hoermann
2016-01-21 20:26:25 +07:00
parent 9ba603660e
commit 6dce40e454
+1 -1
View File
@@ -175,7 +175,7 @@ WHERE
Now whenever you are authenticated in your Rails application you can use some Javascript
code to get the token and use it:
```javascript
$.getJSON('/api_json').done(function(data){
$.getJSON('/api_token').done(function(data){
$.ajax('/orders', {'Authorization': 'Bearer ' + data.token}).done(function(data){
console.log('Visible Orders: ', data);
})