This object is used to tell the API how you want to order the response. For example if you want me to get the most downloaded resources.
Index:
must: Can be most or least.
must
field: Its the name of the property that will be evaluated. (Example: downloads)
field
{ "must": "most", "field": "downloads" }
const api = new SpigetAPI("test"); const resources = await api.getResources({ sort: { must: 'most', field: 'downloads' } });
There was an error while loading. Please reload this page.