diff options
Diffstat (limited to 'web/index.html')
-rw-r--r-- | web/index.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/web/index.html b/web/index.html index f5ee27c..d1819b0 100644 --- a/web/index.html +++ b/web/index.html @@ -109,10 +109,17 @@ $(document).ready(function() { fetchAlbums(); - var request = { - from: { name: 'x', pending: true }, - to: { name: 'y', pending: false } - }; + $.ajax({ + url: '/api/test', + type: 'GET', + headers: {"X-Token": "foo"}, + success: function(data) { + console.log("Success. got response " + data); + }, + error: function(data) { + console.log("Success. got response " + data); + } + }); }); </script> </head> |