diff options
author | Julien Dessaux | 2023-05-29 23:25:09 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-05-29 23:25:09 +0200 |
commit | d79a4485a6b1a3ae6b647d94b45ee22a515441f2 (patch) | |
tree | eccef4acf2a206fa0cfd74c783672287ae99a50b /lib/api.js | |
parent | Refactored the code to separate automation code from the lib handling the api (diff) | |
download | spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.tar.gz spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.tar.bz2 spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.zip |
Many new api calls
Diffstat (limited to '')
-rw-r--r-- | lib/api.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9,7 +9,7 @@ let queue = new PriorityQueue(); // a priority queue to hold api calls we want t // send takes a request object as argument and an optional context ctx // example request: { -// endpoint: the url endpoint to call, +// endpoint: the path part of the url to call, // method: HTTP method for `fetch` call, defaults to 'GET', // payload: optional json object that will be send along with the request, // priority: optional priority value (defaults to 10, lower than 10 means the message will be sent faster) |