gristlabs_grist-core/stubs/app/server
Alex Hall 2c9ae6dc94 (core) Enforce daily limit on API usage
Summary:
Keep track of the number of API requests made for this document today in redis. Uses local caches of the count and the document so that usually requests can proceed without waiting for redis or the database.

Moved the free standing function apiThrottle to become a method to avoid adding another layer of request handler callbacks.

Test Plan: Added a DocApi test

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3327
2022-03-22 00:22:45 +02:00
..
lib (core) Add Grist forgot password page 2022-03-07 09:11:28 -08:00
declarations.d.ts (core) Enforce daily limit on API usage 2022-03-22 00:22:45 +02:00
server.ts (core) make Grist easier to run with a single server 2022-03-05 13:30:45 -05:00
tmp.d.ts (core) move home server into core 2020-07-21 20:39:10 -04:00