From 6dce40e454bffc7853f4db696eda5d0fd5028dd4 Mon Sep 17 00:00:00 2001 From: Guido Hoermann Date: Thu, 21 Jan 2016 20:26:25 +0700 Subject: [PATCH] Rename endpoint for consistent endpoint names In line 126 the endpoint url is api_token. Therefore it should be the same in line 178. --- docs/examples/external_auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/external_auth.md b/docs/examples/external_auth.md index 8df6d906f..310e52648 100644 --- a/docs/examples/external_auth.md +++ b/docs/examples/external_auth.md @@ -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); })